aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/sparc
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-04-07 07:04:26 +0000
committerK. Richard Pixley <rich@cygnus>1993-04-07 07:04:26 +0000
commit73d0fc782010af6ad1784c9e3a8fc41997ec922b (patch)
treeb2b30811f85c276e9ef87d1bc3b87c67288e937a /gdb/config/sparc
parent07861607f5b7010e4b5f908361783aac2c096e1e (diff)
downloadgdb-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/config/sparc')
-rw-r--r--gdb/config/sparc/tm-sun4sol2.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/config/sparc/tm-sun4sol2.h b/gdb/config/sparc/tm-sun4sol2.h
index 3208a9c..a95ef3b 100644
--- a/gdb/config/sparc/tm-sun4sol2.h
+++ b/gdb/config/sparc/tm-sun4sol2.h
@@ -23,12 +23,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef IN_SOLIB_TRAMPOLINE
#define IN_SOLIB_TRAMPOLINE(pc, name) in_solib_trampoline((pc), (name))
-/* BAD_RICH_HACK is a bad hack. What needs to happen here is for
- sections to move out of the solib structures and into objfiles.
- I'm working on this. FIXME. 1apr93 rich@cygnus.com. */
-
-#define BAD_RICH_HACK
-
/* The values of N_SLINE, N_LBRAC, N_RBRAC symbols in .stab sections are
relative to the current function, rather than being absolute or
relative to the current N_SO. */