* [PATCH] Minor change to FR-V prologue scanner
2004-03-19 0:09 [PATCH] Minor change to FR-V prologue scanner Kevin Buettner
@ 2004-03-15 18:50 ` Kevin Buettner
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2004-03-15 18:50 UTC (permalink / raw)
To: gdb-patches
I've just committed the patch below...
* frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
but not via a call to error(), when unable to read memory.
Index: frv-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/frv-tdep.c,v
retrieving revision 1.77
diff -u -p -r1.77 frv-tdep.c
--- frv-tdep.c 15 Mar 2004 18:31:37 -0000 1.77
+++ frv-tdep.c 15 Mar 2004 18:43:46 -0000
@@ -511,7 +511,13 @@ frv_analyze_prologue (CORE_ADDR pc, stru
/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Minor change to FR-V prologue scanner
@ 2004-03-19 0:09 Kevin Buettner
2004-03-15 18:50 ` Kevin Buettner
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Buettner @ 2004-03-19 0:09 UTC (permalink / raw)
To: gdb-patches
I've just committed the patch below...
* frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
but not via a call to error(), when unable to read memory.
Index: frv-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/frv-tdep.c,v
retrieving revision 1.77
diff -u -p -r1.77 frv-tdep.c
--- frv-tdep.c 15 Mar 2004 18:31:37 -0000 1.77
+++ frv-tdep.c 15 Mar 2004 18:43:46 -0000
@@ -511,7 +511,13 @@ frv_analyze_prologue (CORE_ADDR pc, stru
/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-15 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 0:09 [PATCH] Minor change to FR-V prologue scanner Kevin Buettner
2004-03-15 18:50 ` Kevin Buettner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox