aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-26 08:02:23 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-26 08:02:23 +0000
commitd47d5315c8a7ac2df73d47c96d9345c573e41563 (patch)
tree59bcc9a767761c0cc4c90b530fed323eafb36dfc /gdb/mipsread.c
parent2ce38c6d29f82ccd2bcc90ece2e66456685b9099 (diff)
downloadgdb-d47d5315c8a7ac2df73d47c96d9345c573e41563.zip
gdb-d47d5315c8a7ac2df73d47c96d9345c573e41563.tar.gz
gdb-d47d5315c8a7ac2df73d47c96d9345c573e41563.tar.bz2
* symfile.c (syms_from_bfd): New routine.
(add_symbol_file): Call it to do the real work. (syms_from_bfd): Initialize entry_point before calling symfile_init. * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c: Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index b216dde..964f791 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -213,8 +213,6 @@ CORE_ADDR sigtramp_address, sigtramp_end;
/* The entry point (starting address) of the file, if it is an executable. */
-static CORE_ADDR entry_point;
-
extern CORE_ADDR startup_file_start; /* From blockframe.c */
extern CORE_ADDR startup_file_end; /* From blockframe.c */
@@ -233,24 +231,6 @@ mipscoff_symfile_init (sf)
{
bfd *abfd = sf->sym_bfd;
sf->sym_private = NULL;
-
- /* Save startup file's range of PC addresses to help blockframe.c
- decide where the bottom of the stack is. */
- if (bfd_get_file_flags (abfd) & EXEC_P)
- {
- /* Executable file -- record its entry point so we'll recognize
- the startup file because it contains the entry point. */
- entry_point = bfd_get_start_address (abfd);
- }
- else
- {
- /* Examination of non-executable.o files. Short-circuit this stuff. */
- /* ~0 will not be in any file, we hope. */
- entry_point = ~0;
- /* set the startup file to be an empty range. */
- startup_file_start = 0;
- startup_file_end = 0;
- }
}
void