* 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.
This commit is contained in:
Jeff Law
1997-05-14 15:01:33 +00:00
parent 68cad8a2c8
commit c23cc10a8f
2 changed files with 9 additions and 18 deletions

View File

@ -1,3 +1,9 @@
Wed May 14 08:58:55 1997 Jeffrey A Law (law@cygnus.com)
* 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.
start-sanitize-tic80 start-sanitize-tic80
Wed May 14 12:04:49 1997 Andrew Cagney <cagney@b1.cygnus.com> Wed May 14 12:04:49 1997 Andrew Cagney <cagney@b1.cygnus.com>

View File

@ -478,26 +478,11 @@ CORE_ADDR
mn10200_skip_prologue (pc) mn10200_skip_prologue (pc)
CORE_ADDR pc; CORE_ADDR pc;
{ {
CORE_ADDR func_addr, func_end; /* We used to check the debug symbols, but that can lose if
we have a null prologue. */
/* 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); return mn10200_analyze_prologue (NULL, pc);
} }
/* We couldn't find the start of this function, do nothing. */
return pc;
}
/* Function: pop_frame /* Function: pop_frame
This routine gets called when either the user uses the `return' This routine gets called when either the user uses the `return'
command, or the call dummy breakpoint gets hit. */ command, or the call dummy breakpoint gets hit. */