but not via a call to error(), when unable to read memory.
+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.
/* 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