diff options
author | Kevin Buettner <kevinb@redhat.com> | 2004-03-15 18:49:02 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2004-03-15 18:49:02 +0000 |
commit | 9f1828fdeb7d51c0e09cf50fdaef6750ad243da6 (patch) | |
tree | d15e446de5ca53b64206bee710e797f0725eaa48 /gdb/frv-tdep.c | |
parent | 69bdd6bcb5d1dce8c75ecb13166f29b8aa740dc0 (diff) | |
download | gdb-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.c | 8 |
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 |