summaryrefslogtreecommitdiff
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
commit9f1828fdeb7d51c0e09cf50fdaef6750ad243da6 (patch)
treed15e446de5ca53b64206bee710e797f0725eaa48 /gdb/frv-tdep.c
parent69bdd6bcb5d1dce8c75ecb13166f29b8aa740dc0 (diff)
downloadgdb-9f1828fdeb7d51c0e09cf50fdaef6750ad243da6.tar.gz
* 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 5cb038fb3ea..ffd911e0997 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