diff options
author | Jeff Law <law@redhat.com> | 1995-02-09 19:16:47 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1995-02-09 19:16:47 +0000 |
commit | 506af7a79c56669ddd04f9da63c2d48d048615a6 (patch) | |
tree | 9f9e03580efd100e345115481efc074091b675f3 /gdb/somsolib.h | |
parent | 257fcf3621d67bcd447e05500399e252c4cfdd79 (diff) | |
download | gdb-506af7a79c56669ddd04f9da63c2d48d048615a6.zip gdb-506af7a79c56669ddd04f9da63c2d48d048615a6.tar.gz gdb-506af7a79c56669ddd04f9da63c2d48d048615a6.tar.bz2 |
* somread.c (som_symtab_read): Handle dynamic relocation for both
text and data symbols.
(som_symfile_offsets): If objfile is a shared library, then get
text and data offsets from the shared library structures.
* somsolib.c (som_solib_add): Copy the bfd pointer from the
objfile rather than reopening the file again.
(som_solib_section_offsets): New function.
* somsolib.h (som_solib_section_offsets): Declare.
Diffstat (limited to 'gdb/somsolib.h')
-rw-r--r-- | gdb/somsolib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/somsolib.h b/gdb/somsolib.h index 8df2062..800e706 100644 --- a/gdb/somsolib.h +++ b/gdb/somsolib.h @@ -22,6 +22,8 @@ and by Cygnus Support. */ #ifdef __STDC__ /* Forward decl's for prototypes */ struct target_ops; +struct objfile; +struct section_offsets; #endif /* Called to add symbols from a shared library to gdb's symbol table. */ @@ -35,6 +37,9 @@ som_solib_add PARAMS ((char *, int, struct target_ops *)); extern CORE_ADDR som_solib_get_got_by_pc PARAMS ((CORE_ADDR)); +extern int +som_solib_section_offsets PARAMS ((struct objfile *, struct section_offsets *)); + /* Function to be called when the inferior starts up, to discover the names of shared libraries that are dynamically linked, the base addresses to which they are linked, and sufficient information to read in their symbols |