aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10200-tdep.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-05-14 15:01:33 +0000
committerJeff Law <law@redhat.com>1997-05-14 15:01:33 +0000
commitc23cc10a8fc7518f564bb69bdb7726b17982ae3b (patch)
treeb03b7fc6484374583c62fad2791b0df986abd7ea /gdb/mn10200-tdep.c
parent68cad8a2c8fa2508da702c650e5cea5d2098c32a (diff)
downloadfsf-binutils-gdb-c23cc10a8fc7518f564bb69bdb7726b17982ae3b.zip
fsf-binutils-gdb-c23cc10a8fc7518f564bb69bdb7726b17982ae3b.tar.gz
fsf-binutils-gdb-c23cc10a8fc7518f564bb69bdb7726b17982ae3b.tar.bz2
* mn10200-tdep.c (mn10200_skip_prologue): Don't look at the debug
symbols to find the end of the prologue. * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
Diffstat (limited to 'gdb/mn10200-tdep.c')
-rw-r--r--gdb/mn10200-tdep.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/gdb/mn10200-tdep.c b/gdb/mn10200-tdep.c
index 3090597..11fade4 100644
--- a/gdb/mn10200-tdep.c
+++ b/gdb/mn10200-tdep.c
@@ -478,24 +478,9 @@ CORE_ADDR
mn10200_skip_prologue (pc)
CORE_ADDR pc;
{
- CORE_ADDR func_addr, func_end;
-
- /* First check the symbol table. That'll be faster than scanning
- the prologue instructions if we have debug sybmols. */
- if (find_pc_partial_function (pc, NULL, &func_addr, &func_end))
- {
- struct symtab_and_line sal;
-
- sal = find_pc_line (func_addr, 0);
-
- if (sal.line != 0 && sal.end < func_end)
- return sal.end;
-
- return mn10200_analyze_prologue (NULL, pc);
- }
-
- /* We couldn't find the start of this function, do nothing. */
- return pc;
+ /* We used to check the debug symbols, but that can lose if
+ we have a null prologue. */
+ return mn10200_analyze_prologue (NULL, pc);
}
/* Function: pop_frame