* 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:
Kevin Buettner 2004-03-15 18:49:02 +00:00
parent b375a0a5da
commit 1ccda5e956
2 changed files with 12 additions and 1 deletions

View File

@ -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>
* frv-tdep.c (frv_call_dummy_words): Delete.

View File

@ -511,7 +511,13 @@ frv_analyze_prologue (CORE_ADDR pc, struct frame_info *next_frame,
/* Scan the prologue. */
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;
/* The tests in this chain of ifs should be in order of