diff options
author | K. Richard Pixley <rich@cygnus> | 1993-04-07 07:04:26 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1993-04-07 07:04:26 +0000 |
commit | 73d0fc782010af6ad1784c9e3a8fc41997ec922b (patch) | |
tree | b2b30811f85c276e9ef87d1bc3b87c67288e937a /gdb/symfile.h | |
parent | 07861607f5b7010e4b5f908361783aac2c096e1e (diff) | |
download | gdb-73d0fc782010af6ad1784c9e3a8fc41997ec922b.zip gdb-73d0fc782010af6ad1784c9e3a8fc41997ec922b.tar.gz gdb-73d0fc782010af6ad1784c9e3a8fc41997ec922b.tar.bz2 |
Add section table to objfile struct. Use it for find_pc_section.
* objfiles.c (add_to_objfile_sections,
build_objfile_section_table, find_pc_section): new functions.
(allocate_objfile): build section table.
* objfiles.h (struct obj_section): new structure.
(struct objfile): add section table.
(find_pc_section): new prototype.
* solib.[ch] (find_pc_section_from_so_list): removed.
* sparc-tdep.c: include objfiles.h for find_pc_section. include
symfile.h for objfiles.h.
(in_solib_trampoline): adjusted for new find_pc_section
prototype. Removed BAD_RICH_HACK ifdefs.
* symfile.c (syms_from_objfile): offset objfile sections.
(find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
* symfile.h (find_pc_section): prototype removed. Also fixed
comment typo NUL -> NULL.
* target.[ch] (find_pc_section_from_targets): removed.
* config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index b1355d3..306735d 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -40,9 +40,9 @@ struct sym_fns { /* counts how many bytes of sym_name should be checked against the BFD target type of the file being read. If an exact match is - desired, specify the number of characters in sym_name plus 1 for the - NUL. If a prefix match is desired, specify the number of characters in - sym_name. */ + desired, specify the number of characters in sym_name plus 1 for + the NULL. If a prefix match is desired, specify the number of + characters in sym_name. */ int sym_namelen; @@ -133,22 +133,7 @@ extend_psymbol_list PARAMS ((struct psymbol_allocation_list *, PSYMBOL_CLASS (psym) = (CLASS); \ VT (psym) = (VALUE); \ SYMBOL_LANGUAGE (psym) = (LANGUAGE); \ - if ((LANGUAGE) == language_cplus) \ - { \ - demangled_name = \ - cplus_demangle (SYMBOL_NAME (psym), DMGL_PARAMS | DMGL_ANSI); \ - if (demangled_name == NULL) \ - { \ - SYMBOL_DEMANGLED_NAME (psym) = NULL; \ - } \ - else \ - { \ - SYMBOL_DEMANGLED_NAME (psym) = \ - obsavestring (demangled_name, strlen (demangled_name), \ - &objfile->psymbol_obstack); \ - free (demangled_name); \ - } \ - } \ + SYMBOL_INIT_DEMANGLED_NAME (psym, &objfile->psymbol_obstack); \ } while (0); /* Add a symbol with an integer value to a psymtab. */ |