Home
last modified time | relevance | path

Searched full:pdb (Results 1 – 25 of 1661) sorted by relevance

12345678910>>...67

/external/python/cpython3/Lib/test/
Dtest_pdb.py1 # A test suite for pdb; not very comprehensive at the moment.
5 import pdb
16 # This little helper class is essential for testing pdb under doctest.
22 """Context manager that makes testing Pdb in doctests easier."""
39 """This tests the custom displayhook for pdb.
42 ... import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
54 (Pdb) foo
56 (Pdb) bar
57 (Pdb) for i in range(5): print(i)
63 (Pdb) continue
[all …]
/external/selinux/libsepol/src/
Dkernel_to_conf.c30 static char *cond_expr_to_str(struct policydb *pdb, struct cond_expr *expr) in cond_expr_to_str() argument
45 char *val1 = pdb->p_bool_val_to_name[curr->bool - 1]; in cond_expr_to_str()
119 static char *constraint_expr_to_str(struct policydb *pdb, struct constraint_expr *expr, int *use_ml… in constraint_expr_to_str() argument
182 names = ebitmap_to_str(&ts->types, pdb->p_type_val_to_name, 1); in constraint_expr_to_str()
184 names = ebitmap_to_str(&curr->names, pdb->p_user_val_to_name, 1); in constraint_expr_to_str()
186 names = ebitmap_to_str(&curr->names, pdb->p_role_val_to_name, 1); in constraint_expr_to_str()
262 static int class_constraint_rules_to_strs(struct policydb *pdb, char *classkey, in class_constraint_rules_to_strs() argument
276 expr = constraint_expr_to_str(pdb, curr->expr, &is_mls); in class_constraint_rules_to_strs()
282 perms = sepol_av_to_string(pdb, class->s.value, curr->permissions); in class_constraint_rules_to_strs()
310 static int class_validatetrans_rules_to_strs(struct policydb *pdb, char *classkey, in class_validatetrans_rules_to_strs() argument
[all …]
Dkernel_to_cil.c31 static char *cond_expr_to_str(struct policydb *pdb, struct cond_expr *expr) in cond_expr_to_str() argument
46 char *val1 = pdb->p_bool_val_to_name[curr->bool - 1]; in cond_expr_to_str()
121 static char *constraint_expr_to_str(struct policydb *pdb, struct constraint_expr *expr, int *use_ml… in constraint_expr_to_str() argument
185 names = ebitmap_to_str(&ts->types, pdb->p_type_val_to_name, 1); in constraint_expr_to_str()
187 names = ebitmap_to_str(&curr->names, pdb->p_user_val_to_name, 1); in constraint_expr_to_str()
189 names = ebitmap_to_str(&curr->names, pdb->p_role_val_to_name, 1); in constraint_expr_to_str()
266 static int class_constraint_rules_to_strs(struct policydb *pdb, char *classkey, in class_constraint_rules_to_strs() argument
281 expr = constraint_expr_to_str(pdb, curr->expr, &is_mls); in class_constraint_rules_to_strs()
287 perms = sepol_av_to_string(pdb, class->s.value, curr->permissions); in class_constraint_rules_to_strs()
310 static int class_validatetrans_rules_to_strs(struct policydb *pdb, char *classkey, in class_validatetrans_rules_to_strs() argument
[all …]
Dmodule_to_cil.c163 struct policydb *pdb; member
197 /* A linked list of all roles stored in the pdb
331 struct policydb *pdb = arg; in typealiases_gather_map() local
337 scope = hashtab_search(pdb->scope[SYM_TYPES].table, key); in typealiases_gather_map()
379 static int typealias_list_create(struct policydb *pdb) in typealias_list_create() argument
386 for (block = pdb->global; block != NULL; block = block->next) { in typealias_list_create()
396 rc = hashtab_map(pdb->p_types.table, typealiases_gather_map, pdb); in typealias_list_create()
489 static int is_id_in_scope_with_start(struct policydb *pdb, struct stack *decl_stack, int start, uin… in is_id_in_scope_with_start() argument
496 scope = hashtab_search(pdb->scope[symbol_type].table, id); in is_id_in_scope_with_start()
514 static int is_id_in_ancestor_scope(struct policydb *pdb, struct stack *decl_stack, char *type, uint… in is_id_in_ancestor_scope() argument
[all …]
/external/python/cpython2/Lib/test/
Dtest_pdb.py1 # A test suite for pdb; at the moment, this only validates skipping of
12 # This little helper class is essential for testing pdb under doctest.
19 """Run 'script' lines with pdb and the pdb 'commands'."""
24 cmd = [sys.executable, '-m', 'pdb', filename]
85 """Context manager that makes testing Pdb in doctests easier."""
102 """This tests the custom displayhook for pdb.
105 ... import pdb; pdb.Pdb().set_trace()
117 (Pdb) foo
119 (Pdb) bar
120 (Pdb) for i in range(5): write(i)
[all …]
/external/selinux/libsepol/cil/src/
Dcil_binary.h43 * @param[in] pdb The policy database.
47 int cil_binary_create(const struct cil_db *db, sepol_policydb_t **pdb);
52 * It is assumed that pdb has been allocated and initialized so that fields such
55 * properly allocate and initialize the pdb and then calls this function. This
59 * @param[in] pdb The policy database.
63 int cil_binary_create_allocated_pdb(const struct cil_db *db, sepol_policydb_t *pdb);
68 * @param[in] pdb The policy database to insert the common into.
74 int cil_common_to_policydb(policydb_t *pdb, struct cil_class *cil_common, common_datum_t **common_o…
79 * @param[in] pdb The policy database to insert the class into.
84 int cil_class_to_policydb(policydb_t *pdb, struct cil_class *cil_class);
[all …]
Dcil_binary.c68 policydb_t *pdb; member
78 policydb_t *pdb; member
83 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t… in __cil_get_sepol_user_datum() argument
85 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum()
94 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t… in __cil_get_sepol_role_datum() argument
96 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum()
105 static int __cil_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t… in __cil_get_sepol_type_datum() argument
107 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum()
116 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum() argument
118 *sepol_class = hashtab_search(pdb->p_classes.table, datum->fqn); in __cil_get_sepol_class_datum()
[all …]
/external/llvm/lib/DebugInfo/PDB/
DPDBSymbol.cpp10 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
12 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
13 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
14 #include "llvm/DebugInfo/PDB/PDBSymbolAnnotation.h"
15 #include "llvm/DebugInfo/PDB/PDBSymbolBlock.h"
16 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
17 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h"
18 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h"
19 #include "llvm/DebugInfo/PDB/PDBSymbolCustom.h"
20 #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
[all …]
/external/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
DPdbIndex.h15 #include "llvm/DebugInfo/PDB/Native/PDBFile.h"
16 #include "llvm/DebugInfo/PDB/PDBTypes.h"
25 namespace pdb {
33 } // namespace pdb
40 /// PdbIndex - Lazy access to the important parts of a PDB file.
42 /// This is a layer on top of LLVM's native PDB support libraries which cache
43 /// certain data when it is accessed the first time. The entire PDB file is
50 /// The underlying PDB file.
51 llvm::pdb::PDBFile *m_file = nullptr;
54 /// features present in the PDB file, compile units (such as the information
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/
DPDBSymbol.cpp9 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
10 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
11 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
12 #include "llvm/DebugInfo/PDB/IPDBSession.h"
13 #include "llvm/DebugInfo/PDB/PDBExtras.h"
14 #include "llvm/DebugInfo/PDB/PDBSymbolAnnotation.h"
15 #include "llvm/DebugInfo/PDB/PDBSymbolBlock.h"
16 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
17 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h"
18 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h"
[all …]
/external/llvm-project/llvm/lib/DebugInfo/PDB/
DPDBSymbol.cpp9 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
10 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
11 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
12 #include "llvm/DebugInfo/PDB/IPDBSession.h"
13 #include "llvm/DebugInfo/PDB/PDBExtras.h"
14 #include "llvm/DebugInfo/PDB/PDBSymbolAnnotation.h"
15 #include "llvm/DebugInfo/PDB/PDBSymbolBlock.h"
16 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
17 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h"
18 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h"
[all …]
/external/llvm-project/lld/test/COFF/
Dlinkrepro-pdb.test4 RUN: yaml2obj %S/Inputs/pdb-type-server-simple-a.yaml -o a.obj
5 RUN: yaml2obj %S/Inputs/pdb-type-server-simple-b.yaml -o b.obj
6 RUN: llvm-pdbutil yaml2pdb %S/Inputs/pdb-type-server-simple-ts.yaml -pdb ts.pdb
7 RUN: lld-link a.obj b.obj -entry:main -debug -out:%t.exe -pdb:%t.pdb -nodefaultlib -linkrepro:.
8 RUN: tar xOf repro.tar repro/%:t/ts.pdb > repro-ts.pdb
9 RUN: diff ts.pdb repro-ts.pdb
12 RUN: cat repro/response.txt | FileCheck -check-prefix=PDB %s
14 PDB: -out:linkrepro-pdb.test.tmp.exe
15 PDB-NEXT: -pdb:linkrepro-pdb.test.tmp.pdb
22 IMP: /implib:linkrepro-pdb.test.tmp1.lib
Dpdb-options.test4 ; If /DEBUG is not specified, /pdb is ignored.
5 # RUN: rm -f %t.pdb
6 # RUN: lld-link /pdb:%t.pdb /entry:main /nodefaultlib %t1.obj %t2.obj
7 # RUN: not ls %t.pdb
9 ; If /DEBUG:NONE is specified after /DEBUG, /pdb is ignored.
10 # RUN: rm -f %t.pdb
11 # RUN: lld-link /DEBUG /pdb:%t.pdb /DEBUG:NONE /entry:main /nodefaultlib %t1.obj %t2.obj
12 # RUN: not ls %t.pdb
14 ; If /DEBUG and /pdb are specified, it uses the specified name.
15 # RUN: lld-link /DEBUG /pdb:%t.pdb /entry:main /nodefaultlib %t1.obj %t2.obj
[all …]
Ddebug-dwarf.test1 # Check that /debug creates %t.pdb.
2 # RUN: rm -f %t.pdb
4 # RUN: ls %t.pdb
6 # Check that /debug:dwarf does not create %t.pdb.
7 # RUN: rm -f %t.pdb
9 # RUN: not ls %t.pdb
11 # Check that /debug:dwarf /debug creates %t.pdb.
12 # RUN: rm -f %t.pdb
14 # RUN: ls %t.pdb
16 # Check that /debug:dwarf /pdb:%t.pdb does not create %t.pdb.
[all …]
Dpdb-linker-module.test2 RUN: lld-link /debug /pdb:%t.pdb @%t.rsp /entry:"1 "'"'hello'"'" 2" /manifestuac:"level='asInvoker'…
3 RUN: llvm-pdbutil dump -modules %t.pdb | FileCheck --check-prefix=MODS %s
4 RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck --check-prefix=SYMS %s
9 MODS-NEXT: pdb file ni: 1 `{{.*}}pdb-linker-module.test.tmp.pdb`, src file ni: 0 ``
22 SYMS-NEXT: - pdb
23 SYMS-NEXT: - {{.*}}pdb-linker-module{{.*}}pdb
25 …- /debug /pdb:{{.*}}pdb-linker-module{{.*}}pdb /nodefaultlib "/entry:1 ""hello"" 2" "/manifestuac:…
Dpdb-type-server-invalid-signature.yaml2 # Test linking an OBJ with a reference to an out-of-date PDB type server
5 # RUN: lld-link %t.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main 2>&1 | FileCheck %s
11 # Also test linking an OBJ with a reference to *valid* PDB type server
13 # RUN: yaml2obj %S/Inputs/pdb-type-server-valid-signature.yaml -o %t2.obj
14 # RUN: lld-link %t2.obj -out:%t2.exe -debug -pdb:%t2.pdb -nodefaultlib -entry:main 2>&1 | FileCheck…
20 # Test an invalid path reference to a PDB type server; as a fallback LLD should try to load the PDB
21 # RUN: yaml2obj %S/Inputs/pdb-type-server-invalid-path.yaml -o %t3.obj
22 # RUN: cp %S/Inputs/pdb-diff-cl.pdb %T
23 # RUN: lld-link %t3.obj -out:%t3.exe -debug -pdb:%t3.pdb -nodefaultlib -entry:main 2>&1 | FileCheck…
26 # INVALID-PATH-NOT: failed to load reference 'c:\some_invalid_path_AABB98765\pdb-diff-cl.pdb': {{[N…
[all …]
/external/llvm-project/llvm/tools/llvm-pdbutil/
DPdbYaml.cpp13 #include "llvm/DebugInfo/PDB/Native/PDBFile.h"
14 #include "llvm/DebugInfo/PDB/Native/RawTypes.h"
15 #include "llvm/DebugInfo/PDB/Native/TpiHashing.h"
16 #include "llvm/DebugInfo/PDB/PDBTypes.h"
21 using namespace llvm::pdb;
22 using namespace llvm::pdb::yaml;
25 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::pdb::yaml::NamedStreamMapping)
26 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::pdb::yaml::PdbDbiModuleInfo)
27 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::pdb::yaml::StreamBlockList)
28 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(llvm::pdb::PdbRaw_FeatureSig)
[all …]
/external/llvm-project/llvm/test/tools/llvm-pdbutil/
Dexplain-pdb-stream.test9 ; RUN: %p/Inputs/InjectedSource.pdb | FileCheck %s
14 CHECK-NEXT: Address is at offset 0/202 of Stream 1 (PDB Stream).
15 CHECK-NEXT: Within the PDB stream:
16 CHECK-NEXT: address is at offset 0/28 of the PDB Stream Header.
17 CHECK-NEXT: which contains the PDB Stream Version Signature.
22 CHECK-NEXT: Address is at offset 4/202 of Stream 1 (PDB Stream).
23 CHECK-NEXT: Within the PDB stream:
24 CHECK-NEXT: address is at offset 4/28 of the PDB Stream Header.
25 CHECK-NEXT: which contains the signature of the PDB Stream.
30 CHECK-NEXT: Address is at offset 8/202 of Stream 1 (PDB Stream).
[all …]
/external/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/
Dlocate-pdb.cpp4 // Test that lldb can find the PDB file that corresponds to the executable. The linker
5 // writes a path to the PDB in the executable. If the PDB is not there, lldb should
6 // check the directory that contains the executable. We'll generate the PDB file in
8 // ensure the PDB path stored in the executable is wrong.
10 // Build an EXE and PDB in different directories
12 // RUN: rm -f %t/executable/foo.exe %t/executable/bar.pdb
14 // RUN: rm -f %t/symbols/bar.pdb
17 // RUN: -out:%t/executable/foo.exe -pdb:%t/symbols/bar.pdb
19 // Find the PDB in its build location
21 // RUN: %p/Inputs/locate-pdb.lldbinit | FileCheck %s
[all …]
/external/llvm/unittests/DebugInfo/PDB/
DPDBApiTest.cpp1 //===- llvm/unittest/DebugInfo/PDB/PDBApiTest.cpp -------------------------===//
13 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
14 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
15 #include "llvm/DebugInfo/PDB/IPDBSession.h"
16 #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
18 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
19 #include "llvm/DebugInfo/PDB/PDBSymbolAnnotation.h"
20 #include "llvm/DebugInfo/PDB/PDBSymbolBlock.h"
21 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
22 #include "llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h"
[all …]
/external/llvm/tools/llvm-pdbdump/
DPdbYaml.cpp12 #include "llvm/DebugInfo/PDB/PDBExtras.h"
13 #include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
17 using namespace llvm::pdb;
18 using namespace llvm::pdb::yaml;
22 template <> struct ScalarTraits<llvm::pdb::PDB_UniqueId> {
23 static void output(const llvm::pdb::PDB_UniqueId &S, void *, in output()
29 llvm::pdb::PDB_UniqueId &S) { in input()
57 template <> struct ScalarEnumerationTraits<llvm::pdb::PDB_Machine> {
58 static void enumeration(IO &io, llvm::pdb::PDB_Machine &Value) { in enumeration()
80 template <> struct ScalarEnumerationTraits<llvm::pdb::PdbRaw_DbiVer> {
[all …]
DPdbYaml.h16 #include "llvm/DebugInfo/PDB/PDBTypes.h"
17 #include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
18 #include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
25 namespace pdb {
72 template <> struct MappingTraits<pdb::yaml::PdbObject> {
73 static void mapping(IO &IO, pdb::yaml::PdbObject &Obj);
76 template <> struct MappingTraits<pdb::yaml::MsfHeaders> {
77 static void mapping(IO &IO, pdb::yaml::MsfHeaders &Obj);
80 template <> struct MappingTraits<pdb::PDBFile::SuperBlock> {
81 static void mapping(IO &IO, pdb::PDBFile::SuperBlock &SB);
[all …]
/external/llvm-project/llvm/unittests/DebugInfo/PDB/
DPDBApiTest.cpp1 //===- llvm/unittest/DebugInfo/PDB/PDBApiTest.cpp -------------------------===//
12 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
13 #include "llvm/DebugInfo/PDB/IPDBInjectedSource.h"
14 #include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
15 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
16 #include "llvm/DebugInfo/PDB/IPDBSectionContrib.h"
17 #include "llvm/DebugInfo/PDB/IPDBSession.h"
18 #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
19 #include "llvm/DebugInfo/PDB/IPDBTable.h"
21 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
[all …]
/external/python/cpython3/Doc/library/
Dpdb.rst3 :mod:`pdb` --- The Python Debugger
6 .. module:: pdb
9 **Source code:** :source:`Lib/pdb.py`
15 The module :mod:`pdb` defines an interactive source code debugger for Python
22 single: Pdb (class in pdb)
26 The debugger is extensible -- it is actually defined as the class :class:`Pdb`.
30 The debugger's prompt is ``(Pdb)``. Typical usage to run a program under control
33 >>> import pdb
35 >>> pdb.run('mymodule.test()')
37 (Pdb) continue
[all …]
/external/llvm-project/llvm/test/DebugInfo/PDB/
Dpdbdump-write.test1 ; This testcase checks to make sure that we can write PDB files. It
2 ; works by first reading a known good PDB file and dumping the contents
3 ; to YAML. Then it tries to reconstruct as much of the original PDB as
5 ; the YAML, the PDB might be missing data required for any standard tool
7 ; constructed PDB to YAML, and verifies that the YAML is the same as the
8 ; original YAML generated from the good PDB. Note that when doing the
9 ; final comparison it must dump the original and the new pdb without any
14 ; RUN: -pdb-stream -tpi-stream -module-syms %p/Inputs/empty.pdb > %t.1
15 ; RUN: llvm-pdbutil yaml2pdb -pdb=%t.2 %t.1
16 ; RUN: llvm-pdbutil pdb2yaml -pdb-stream -tpi-stream \
[all …]

12345678910>>...67