/openbsd/usr.bin/dig/lib/isc/ |
H A D | symtab.c | 54 isc_symtab_t *symtab; in isc_symtab_create() local 60 symtab = (isc_symtab_t *)malloc(sizeof(*symtab)); in isc_symtab_create() 61 if (symtab == NULL) in isc_symtab_create() 66 free(symtab); in isc_symtab_create() 71 symtab->size = size; in isc_symtab_create() 72 symtab->count = 0; in isc_symtab_create() 77 *symtabp = symtab; in isc_symtab_create() 88 symtab = *symtabp; in isc_symtab_destroy() 102 free(symtab); in isc_symtab_destroy() 233 symtab->count++; in isc_symtab_define() [all …]
|
/openbsd/gnu/usr.bin/binutils/gprof/ |
H A D | corefile.c | 418 symtab.len = 0; 442 ++symtab.len; 452 symtab.base = (Sym *) xmalloc ((symtab.len + 2) * sizeof (Sym)); 455 symtab.limit = symtab.base; 568 (long) (symtab.limit - symtab.base), 571 ++symtab.limit; 579 ++symtab.limit; 585 ++symtab.limit; 587 symtab.len = symtab.limit - symtab.base; 758 memcpy (ltab.limit, symtab.base, symtab.len * sizeof (Sym)); [all …]
|
H A D | hist.c | 208 for (sym = symtab.base; sym < symtab.limit; sym++) in scale_and_align_entries() 299 for (j = j - 1; j < symtab.len; ++j) in hist_assign_samples() 301 sym_low_pc = symtab.base[j].hist.scaled_addr; in hist_assign_samples() 302 sym_high_pc = symtab.base[j + 1].hist.scaled_addr; in hist_assign_samples() 321 (unsigned long) symtab.base[j].addr, in hist_assign_samples() 326 addr = symtab.base[j].addr; in hist_assign_samples() 336 symtab.base[j].hist.time += credit; in hist_assign_samples() 494 for (index = 0; index < symtab.len; ++index) in hist_print() 495 time_sorted_syms[index] = &symtab.base[index]; in hist_print() 511 for (index = 0; index < symtab.len; ++index) in hist_print() [all …]
|
H A D | cg_arcs.c | 289 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link() 310 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link() 454 for (index = symtab.len - 1; index >= 0; --index) 619 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble() 649 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble() 662 for (index = 0; index < symtab.len; ++index) in cg_assemble() 664 top_sorted_syms[index] = &symtab.base[index]; in cg_assemble() 669 for (index = 0; index < symtab.len; ++index) in cg_assemble() 690 for (index = 0; index < symtab.len; ++index) in cg_assemble() 702 for (index = 0; index < symtab.len; index++) in cg_assemble() [all …]
|
H A D | cg_print.c | 592 && symtab.base[index].hist.time == 0) in cg_print_index() 824 if (symtab.base[index].ncalls == 0) in cg_print_function_ordering() 836 used_syms[used++] = &symtab.base[index]; in cg_print_function_ordering() 837 symtab.base[index].has_been_placed = 0; in cg_print_function_ordering() 838 symtab.base[index].next = 0; in cg_print_function_ordering() 839 symtab.base[index].prev = 0; in cg_print_function_ordering() 840 symtab.base[index].nuses = 0; in cg_print_function_ordering() 1266 if (symtab.base[index].mapped in cg_print_file_ordering() 1268 printf ("%s\n", symtab.base[index].name); in cg_print_file_ordering() 1284 if (! symtab.base[index2].mapped) in cg_print_file_ordering() [all …]
|
/openbsd/gnu/usr.bin/binutils-2.17/gprof/ |
H A D | corefile.c | 428 symtab.len = 0; in core_create_function_syms() 452 ++symtab.len; in core_create_function_syms() 462 symtab.base = (Sym *) xmalloc ((symtab.len + 2) * sizeof (Sym)); in core_create_function_syms() 465 symtab.limit = symtab.base; in core_create_function_syms() 578 (long) (symtab.limit - symtab.base), in core_create_function_syms() 581 ++symtab.limit; in core_create_function_syms() 589 ++symtab.limit; in core_create_function_syms() 595 ++symtab.limit; in core_create_function_syms() 597 symtab.len = symtab.limit - symtab.base; in core_create_function_syms() 765 memcpy (ltab.limit, symtab.base, symtab.len * sizeof (Sym)); in core_create_line_syms() [all …]
|
H A D | hist.c | 205 for (sym = symtab.base; sym < symtab.limit; sym++) in scale_and_align_entries() 296 for (j = j - 1; j < symtab.len; ++j) in hist_assign_samples() 298 sym_low_pc = symtab.base[j].hist.scaled_addr; in hist_assign_samples() 299 sym_high_pc = symtab.base[j + 1].hist.scaled_addr; in hist_assign_samples() 318 (unsigned long) symtab.base[j].addr, in hist_assign_samples() 323 addr = symtab.base[j].addr; in hist_assign_samples() 333 symtab.base[j].hist.time += credit; in hist_assign_samples() 486 for (index = 0; index < symtab.len; ++index) in hist_print() 487 time_sorted_syms[index] = &symtab.base[index]; in hist_print() 503 for (index = 0; index < symtab.len; ++index) in hist_print() [all …]
|
H A D | cg_arcs.c | 281 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link() 302 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link() 444 for (index = symtab.len - 1; index >= 0; --index) in propagate_flags() 607 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble() 637 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble() 650 for (index = 0; index < symtab.len; ++index) in cg_assemble() 652 top_sorted_syms[index] = &symtab.base[index]; in cg_assemble() 657 for (index = 0; index < symtab.len; ++index) in cg_assemble() 678 for (index = 0; index < symtab.len; ++index) in cg_assemble() 690 for (index = 0; index < symtab.len; index++) in cg_assemble() [all …]
|
H A D | cg_print.c | 577 && symtab.base[index].hist.time == 0) in cg_print_index() 805 if (symtab.base[index].ncalls == 0) in cg_print_function_ordering() 817 used_syms[used++] = &symtab.base[index]; in cg_print_function_ordering() 818 symtab.base[index].has_been_placed = 0; in cg_print_function_ordering() 819 symtab.base[index].next = 0; in cg_print_function_ordering() 820 symtab.base[index].prev = 0; in cg_print_function_ordering() 821 symtab.base[index].nuses = 0; in cg_print_function_ordering() 1247 if (symtab.base[index].mapped in cg_print_file_ordering() 1249 printf ("%s\n", symtab.base[index].name); in cg_print_file_ordering() 1265 if (! symtab.base[index2].mapped) in cg_print_file_ordering() [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | symtab.h | 768 struct symtab struct 826 void (*free_func)(struct symtab *symtab); argument 864 #define BLOCKVECTOR(symtab) (symtab)->blockvector argument 865 #define LINETABLE(symtab) (symtab)->linetable argument 947 struct symtab *symtab; member 969 ((pst) -> symtab != NULL ? (pst) -> symtab : psymtab_to_symtab (pst)) 1030 struct symtab **symtab); 1038 struct symtab **symtab); 1048 struct symtab **symtab); 1192 struct symtab *symtab; member [all …]
|
H A D | cp-namespace.c | 78 struct symtab **symtab, 86 struct symtab **symtab, 97 static void free_namespace_block (struct symtab *symtab); 109 struct symtab **symtab); 339 struct symtab **symtab) in cp_lookup_symbol_nonlocal() argument 365 struct symtab **symtab, in lookup_namespace_scope() argument 386 domain, symtab, in lookup_namespace_scope() 412 struct symtab **symtab) in cp_lookup_symbol_namespace() argument 432 symtab); in cp_lookup_symbol_namespace() 471 struct symtab **symtab, in lookup_symbol_file() argument [all …]
|
H A D | symtab.c | 86 struct symtab **symtab); 93 struct symtab **symtab); 100 struct symtab **symtab); 107 struct symtab **symtab); 115 struct symtab **symtab); 1013 struct symtab **symtab) in lookup_symbol() argument 1150 struct symtab **symtab) in lookup_symbol_aux_local() argument 1181 struct symtab **symtab) in lookup_symbol_aux_block() argument 1224 struct symtab **symtab) in lookup_symbol_aux_symtabs() argument 1258 struct symtab **symtab) in lookup_symbol_aux_psymtabs() argument [all …]
|
H A D | linespec.c | 131 struct symtab *file_symtab, 132 struct symtab *sym_symtab); 209 (struct symtab **) NULL))) in find_methods() 388 struct symtab *s = sal->symtab; in build_canonical_line_spec() 509 if (values.sals[i].symtab) in decode_line_2() 1169 struct symtab *sym_symtab; in decode_compound() 1392 (struct symtab **) NULL); in lookup_prefix_sym() 1501 static struct symtab * 1626 if (val.symtab == 0) in decode_all_digits() 1655 struct symtab *sym_symtab; in decode_dollar() [all …]
|
H A D | macroscope.c | 39 if (! sal.symtab in sal_macro_scope() 40 || ! sal.symtab->macro_table) in sal_macro_scope() 45 main = macro_main (sal.symtab->macro_table); in sal_macro_scope() 46 inclusion = macro_lookup_inclusion (main, sal.symtab->filename); in sal_macro_scope() 75 sal.symtab->filename); in sal_macro_scope() 115 sal.symtab = cursal.symtab; in default_macro_scope()
|
H A D | disasm.c | 155 struct symtab *symtab, in do_mixed_source_and_assembly() argument 237 print_source_lines (symtab, next_line, mle[i].line + 1, 0); in do_mixed_source_and_assembly() 250 print_source_lines (symtab, next_line, next_line + 1, in do_mixed_source_and_assembly() 263 print_source_lines (symtab, next_line, mle[i].line + 1, 0); in do_mixed_source_and_assembly() 361 struct symtab *symtab = NULL; in gdb_disassembly() local 366 symtab = find_pc_symtab (low); in gdb_disassembly() 368 if (symtab != NULL && symtab->linetable != NULL) in gdb_disassembly() 371 le = symtab->linetable->item; in gdb_disassembly() 372 nlines = symtab->linetable->nitems; in gdb_disassembly() 376 || symtab == NULL || symtab->linetable == NULL) in gdb_disassembly() [all …]
|
H A D | symmisc.c | 185 struct symtab *s; in print_objfile_statistics() 246 struct symtab *symtab; in dump_objfile() local 281 symtab != NULL; in dump_objfile() 282 symtab = symtab->next) in dump_objfile() 441 dump_symtab (struct objfile *objfile, struct symtab *symtab, in dump_symtab() argument 454 if (symtab->dirname) in dump_symtab() 477 if (symtab->primary) in dump_symtab() 543 struct symtab *s; in maintenance_print_symbols() 996 struct symtab *symtab; in maintenance_info_symtabs() local 1018 symtab->dirname ? symtab->dirname : "(null)"); in maintenance_info_symtabs() [all …]
|
/openbsd/gnu/llvm/lldb/source/Plugins/SymbolFile/Symtab/ |
H A D | SymbolFileSymtab.cpp | 61 const Symtab *symtab = m_objfile_sp->GetSymtab(); in CalculateAbilities() local 62 if (symtab) { in CalculateAbilities() 66 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeSourceFile, in CalculateAbilities() 71 if (symtab->AppendSymbolIndexesWithType( in CalculateAbilities() 74 symtab->SortSymbolIndexesByValue(m_func_indexes, true); in CalculateAbilities() 81 symtab->SortSymbolIndexesByValue(m_code_indexes, true); in CalculateAbilities() 85 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeData, in CalculateAbilities() 87 symtab->SortSymbolIndexesByValue(m_data_indexes, true); in CalculateAbilities() 92 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeObjCClass, in CalculateAbilities() 138 const Symtab *symtab = m_objfile_sp->GetSymtab(); in ParseFunctions() local [all …]
|
/openbsd/gnu/usr.bin/perl/dist/constant/lib/ |
H A D | constant.pm | 62 my $symtab; 66 $symtab = \%{$caller . '::'}; 85 my $symtab = $symtab; 91 $symtab = \%{$pkg . '::'}; 165 if (!exists $symtab->{$name}) { 166 $symtab->{$name} = \$scalar; 181 if (!exists $symtab->{$name}) { 182 $symtab->{$name} = \@list;
|
/openbsd/lib/libelf/ |
H A D | libelf_ar.c | 319 Elf_Arsym *symtab, *sym; in _libelf_ar_process_bsd_symtab() local 330 symtab = NULL; in _libelf_ar_process_bsd_symtab() 397 e->e_u.e_ar.e_symtab = symtab; in _libelf_ar_process_bsd_symtab() 401 return (symtab); in _libelf_ar_process_bsd_symtab() 404 if (symtab) in _libelf_ar_process_bsd_symtab() 405 free(symtab); in _libelf_ar_process_bsd_symtab() 435 Elf_Arsym *symtab, *sym; in _libelf_ar_process_svr4_symtab() local 442 symtab = NULL; in _libelf_ar_process_svr4_symtab() 491 return (symtab); in _libelf_ar_process_svr4_symtab() 494 if (symtab) in _libelf_ar_process_svr4_symtab() [all …]
|
H A D | elf_getarsym.c | 37 Elf_Arsym *symtab; in elf_getarsym() local 40 symtab = NULL; in elf_getarsym() 44 else if ((symtab = ar->e_u.e_ar.e_symtab) != NULL) in elf_getarsym() 47 symtab = (ar->e_flags & LIBELF_F_AR_VARIANT_SVR4) ? in elf_getarsym() 55 return (symtab); in elf_getarsym()
|
/openbsd/sys/ddb/ |
H A D | db_elf.c | 69 if (ALIGNED_POINTER(symtab, long) == 0) { in db_elf_sym_init() 71 name, symtab); in db_elf_sym_init() 95 elf = (Elf_Ehdr *)symtab; in db_elf_sym_init() 114 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff); in db_elf_sym_init() 122 symtab_start = (Elf_Sym *)((char *)symtab + in db_elf_sym_init() 124 symtab_end = (Elf_Sym *)((char *)symtab + in db_elf_sym_init() 130 strtab_end = (char *)symtab + shp[j].sh_offset + in db_elf_sym_init() 141 strtab_end = (char *)symtab + shp[i].sh_offset + in db_elf_sym_init() 144 symtab_start = (Elf_Sym *)((char *)symtab + in db_elf_sym_init() 146 symtab_end = (Elf_Sym *)((char *)symtab + in db_elf_sym_init() [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/cli/ |
H A D | cli-cmds.c | 569 if (sal.symtab == 0) in edit_command() 600 if (sal.symtab == 0) in edit_command() 623 if (sal.symtab == 0) in edit_command() 635 + (NULL == sal.symtab->dirname ? 0 : strlen(sal.symtab->dirname) + 1) in edit_command() 636 + (NULL == sal.symtab->filename? 0 : strlen(sal.symtab->filename)+ 1) in edit_command() 642 (NULL != sal.symtab->filename && *(sal.symtab->filename) != '/') ? in edit_command() 643 sal.symtab->dirname : ""), in edit_command() 644 (NULL == sal.symtab->filename ? "unknown" : sal.symtab->filename) in edit_command() 756 && sal.symtab != sal_end.symtab) in list_command() 767 if (sal.symtab == 0) in list_command() [all …]
|
/openbsd/usr.sbin/crunchgen/ |
H A D | elf_hide.c | 58 Elf_Sym * symtab, int symtabsize, int symtabsecnum); 60 Elf_Sym * symtab, int symtabsize, int symtabsecnum); 183 Elf_Sym *symtab; in load_symtab() local 193 symtab = NULL; in load_symtab() 205 symtab = (Elf_Sym *) (pexe + psymshdr->sh_offset); in load_symtab() 210 dump_symtab(symsect, symtab, symtabsize); in load_symtab() 224 psymtab = &(symtab[i]); in dump_symtab() 313 psymtab = &(symtab[i]); in hide_sym() 357 bcopy(symtab, tmpsymtab, symtabsize); in reorder_syms() 366 bcopy(&(tmpsymtab[i]), &(symtab[cursym]), in reorder_syms() [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/mi/ |
H A D | mi-cmd-file.c | 50 if (!st.symtab) in mi_cmd_file_list_exec_source_file() 54 symtab_to_fullname (st.symtab); in mi_cmd_file_list_exec_source_file() 58 ui_out_field_string (uiout, "file", st.symtab->filename); in mi_cmd_file_list_exec_source_file() 61 if (st.symtab->fullname) in mi_cmd_file_list_exec_source_file() 62 ui_out_field_string (uiout, "fullname", st.symtab->fullname); in mi_cmd_file_list_exec_source_file() 70 struct symtab *s; in mi_cmd_file_list_exec_source_files()
|
/openbsd/gnu/llvm/lld/wasm/ |
H A D | MarkLive.cpp | 90 enqueue(symtab->find(config->entry)); in run() 93 for (Symbol *sym : symtab->symbols()) in run() 101 for (const ObjFile *obj : symtab->objectFiles) in run() 155 for (const ObjFile *obj : symtab->objectFiles) { in markLive() 172 for (InputChunk *c : symtab->syntheticFunctions) in markLive() 175 for (InputGlobal *g : symtab->syntheticGlobals) in markLive() 178 for (InputTable *t : symtab->syntheticTables) in markLive() 196 for (const ObjFile *file : symtab->objectFiles) { in isCallCtorsLive()
|