aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-20 03:27:04 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-20 03:27:04 +0000
commit961b4908e91517afed429ee3e246007efa86616c (patch)
tree8ef8c8780cf5f03a71a15aeac6bcb4d97019ebd8 /gdb/mipsread.c
parent9d62cbd23acf119c892fe8aae977d55e0b8d87b0 (diff)
downloadgdb-961b4908e91517afed429ee3e246007efa86616c.zip
gdb-961b4908e91517afed429ee3e246007efa86616c.tar.gz
gdb-961b4908e91517afed429ee3e246007efa86616c.tar.bz2
* mipsread.c (parse_symbol): Set startup_file_{start,end} if
entry_point is in current file.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index e4804ac..1e1202c 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -1224,6 +1224,11 @@ data: /* Common code for symbols describing data */
BLOCK_END(b_bad) = BLOCK_END(b);
}
}
+ if (entry_point < BLOCK_END(b)
+ && entry_point >= BLOCK_START(b)) {
+ startup_file_start = BLOCK_START(b);
+ startup_file_end = BLOCK_END(b);
+ }
} else if (sh->sc == scText && top_stack->blocktype == stBlock) {
/* End of (code) block. The value of the symbol
is the displacement from the procedure`s start