* frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
but not via a call to error(), when unable to read memory.
This commit is contained in:
parent
b375a0a5da
commit
1ccda5e956
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-03-15 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
|
||||||
|
but not via a call to error(), when unable to read memory.
|
||||||
|
|
||||||
2004-03-15 Kevin Buettner <kevinb@redhat.com>
|
2004-03-15 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* frv-tdep.c (frv_call_dummy_words): Delete.
|
* frv-tdep.c (frv_call_dummy_words): Delete.
|
||||||
|
|
|
@ -511,7 +511,13 @@ frv_analyze_prologue (CORE_ADDR pc, struct frame_info *next_frame,
|
||||||
/* Scan the prologue. */
|
/* Scan the prologue. */
|
||||||
while (pc < lim_pc)
|
while (pc < lim_pc)
|
||||||
{
|
{
|
||||||
LONGEST op = read_memory_integer (pc, 4);
|
char buf[frv_instr_size];
|
||||||
|
LONGEST op;
|
||||||
|
|
||||||
|
if (target_read_memory (pc, buf, sizeof buf) != 0)
|
||||||
|
break;
|
||||||
|
op = extract_signed_integer (buf, sizeof buf);
|
||||||
|
|
||||||
next_pc = pc + 4;
|
next_pc = pc + 4;
|
||||||
|
|
||||||
/* The tests in this chain of ifs should be in order of
|
/* The tests in this chain of ifs should be in order of
|
||||||
|
|
Loading…
Add table
Reference in a new issue