diff options
author | Fred Fish <fnf@specifix.com> | 1992-03-21 01:56:01 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-03-21 01:56:01 +0000 |
commit | 5e2e79f859325ef28cbc98c6704a72de847e5711 (patch) | |
tree | 7bb6d0ceea0015d4a779b234b07ea8fb87ca79bf /gdb/mipsread.c | |
parent | 9abf9406705ea8a98ba7ca4e2a42c80711a4d525 (diff) | |
download | gdb-5e2e79f859325ef28cbc98c6704a72de847e5711.zip gdb-5e2e79f859325ef28cbc98c6704a72de847e5711.tar.gz gdb-5e2e79f859325ef28cbc98c6704a72de847e5711.tar.bz2 |
Many changes, most related to creating entry point information on a per-objfile
basis. See comments in objfiles.h and details in ChangeLog. Also remove
redundant definitions of FRAME_CHAIN_VALID from most of the tm-* files and
use a default definition in frame.h.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r-- | gdb/mipsread.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c index 0504649..e07203f 100644 --- a/gdb/mipsread.c +++ b/gdb/mipsread.c @@ -54,6 +54,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "gdbtypes.h" #include "gdbcore.h" #include "symfile.h" +#include "objfiles.h" #include "obstack.h" #include "buildsym.h" #include <sys/param.h> @@ -260,11 +261,6 @@ static char* mips_next_symbol_text (); CORE_ADDR sigtramp_address, sigtramp_end; -/* The entry point (starting address) of the file, if it is an executable. */ - -extern CORE_ADDR startup_file_start; /* From blockframe.c */ -extern CORE_ADDR startup_file_end; /* From blockframe.c */ - void mipscoff_new_init (objfile) struct objfile *objfile; @@ -2100,14 +2096,15 @@ parse_partial_symbols(end_of_text_seg, objfile) end_psymtab (save_pst, psymtab_include_list, includes_used, -1, save_pst->texthigh, dependency_list, dependencies_used); - if (entry_point < save_pst->texthigh - && entry_point >= save_pst->textlow) { - startup_file_start = save_pst->textlow; - startup_file_end = save_pst->texthigh; - } + if (objfile -> ei.entry_point >= save_pst->textlow && + objfile -> ei.entry_point < save_pst->texthigh) + { + objfile -> ei.entry_file_lowpc = save_pst->textlow; + objfile -> ei.entry_file_highpc = save_pst->texthigh; + } } - /* Mark the last code address, and remember it for later */ + /* Mark the last code address, and remember it for later */ hdr->cbDnOffset = end_of_text_seg; /* Now scan the FDRs for dependencies */ |