aboutsummaryrefslogtreecommitdiff
path: root/gdb/frv-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2004-03-15 18:49:02 +0000
committerKevin Buettner <kevinb@redhat.com>2004-03-15 18:49:02 +0000
commit1ccda5e956ca3c3ba607fc33b11ec91030d46446 (patch)
tree451fa2dede440b8d51df0faa9822688486fe72d9 /gdb/frv-tdep.c
parentb375a0a5da6346a75da4a7ab1cc34d7532f7e443 (diff)
downloadgdb-1ccda5e956ca3c3ba607fc33b11ec91030d46446.zip
gdb-1ccda5e956ca3c3ba607fc33b11ec91030d46446.tar.gz
gdb-1ccda5e956ca3c3ba607fc33b11ec91030d46446.tar.bz2
* frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
but not via a call to error(), when unable to read memory.
Diffstat (limited to 'gdb/frv-tdep.c')
-rw-r--r--gdb/frv-tdep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c
index 5cb038f..ffd911e 100644
--- a/gdb/frv-tdep.c
+++ b/gdb/frv-tdep.c
@@ -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