summaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-12-12 15:57:00 +0000
committerTom Tromey <tromey@redhat.com>2012-12-12 15:57:00 +0000
commit833dd807efacd91c7f6a2938e655e341d7cd06cf (patch)
treef1d3a3d4e5f8918983467c8c8b18c042be3a5150 /gdb/objfiles.h
parentfe918324e83bec0af9cf4269c59407aa80f449d6 (diff)
downloadgdb-833dd807efacd91c7f6a2938e655e341d7cd06cf.tar.gz
* coffread.c (coff_symfile_init): Use set_objfile_data.
(coff_symfile_read): Use DBX_SYMFILE_INFO. * dbxread.c (dbx_objfile_data_key): New global. (dbx_symfile_init): Use set_objfile_data. (dbx_symfile_finish): Don't free deprecated_sym_stab_info. (dbx_free_symfile_info): New function. (coffstab_build_psymtabs, elfstab_build_psymtabs): Use DBX_SYMFILE_INFO. (stabsect_build_psymtabs): Use set_objfile_data. (_initialize_dbxreadb): Initialize dbx_objfile_data_key. * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO, set_objfile_data. (free_elfinfo): Use DBX_SYMFILE_INFO. (elf_symfile_finish): Don't free deprecated_sym_stab_info. (elfstab_offset_sections): Use DBX_SYMFILE_INFO. * gdb-stabs.h (dbx_objfile_data_key): Declare. (DBX_SYMFILE_INFO): Rewrite to use objfile_data. * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove. * somread.c (som_symfile_finish): Don't free deprecated_sym_stab_info.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 304f935d1e7..65162a17567 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -322,15 +322,6 @@ struct objfile
struct entry_info ei;
- /* Information about stabs. Will be filled in with a dbx_symfile_info
- struct by those readers that need it. */
- /* NOTE: cagney/2004-10-23: This has been replaced by per-objfile
- data points implemented using "data" and "num_data" below. For
- an example of how to use this replacement, see "objfile_data"
- in "mips-tdep.c". */
-
- struct dbx_symfile_info *deprecated_sym_stab_info;
-
/* Hook for information for use by the symbol reader (currently used
for information shared by sym_init and sym_read). It is
typically a pointer to malloc'd memory. The symbol reader's finish
@@ -344,8 +335,7 @@ struct objfile
/* Per objfile data-pointers required by other GDB modules. */
/* FIXME: kettenis/20030711: This mechanism could replace
- deprecated_sym_stab_info and deprecated_sym_private
- entirely. */
+ deprecated_sym_private entirely. */
REGISTRY_FIELDS;