aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2005-09-06 22:01:59 +0000
committerKevin Buettner <kevinb@redhat.com>2005-09-06 22:01:59 +0000
commitf2c8bc43275645d9f42669ce9e01e8fca02de1b3 (patch)
treea0b86cfdca15274d02c8bea859490240e5e0b6d9 /gdb
parente0d5208391f8c3f980ef5ca719fe6e6859bf5063 (diff)
downloadgdb-f2c8bc43275645d9f42669ce9e01e8fca02de1b3.zip
gdb-f2c8bc43275645d9f42669ce9e01e8fca02de1b3.tar.gz
gdb-f2c8bc43275645d9f42669ce9e01e8fca02de1b3.tar.bz2
* mn10300-tdep.c (mn10300_analyze_prologue): Use
safe_frame_unwind_memory() in place of deprecated_read_memory_nobpt().
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mn10300-tdep.c15
2 files changed, 10 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 86cd3d9..a777fea 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-06 Kevin Buettner <kevinb@redhat.com>
+
+ * mn10300-tdep.c (mn10300_analyze_prologue): Use
+ safe_frame_unwind_memory() in place of deprecated_read_memory_nobpt().
+
2005-09-04 Daniel Jacobowitz <dan@codesourcery.com>
* inf-child.c (inf_child_follow_fork): Add OPS argument.
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index 4e9f372..cabd857 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -554,8 +554,7 @@ mn10300_analyze_prologue (struct frame_info *fi,
#if 0
/* Get the next two bytes into buf, we need two because rets is a two
byte insn and the first isn't enough to uniquely identify it. */
- status = deprecated_read_memory_nobpt (pc, buf, 2);
- if (status != 0)
+ if (!safe_frame_unwind_memory (fi, pc, buf, 2))
return pc;
/* Note: kevinb/2003-07-16: We shouldn't be making these sorts of
@@ -596,8 +595,7 @@ mn10300_analyze_prologue (struct frame_info *fi,
addr = func_addr;
/* Suck in two bytes. */
- if (addr + 2 >= stop
- || (status = deprecated_read_memory_nobpt (addr, buf, 2)) != 0)
+ if (addr + 2 >= stop || !safe_frame_unwind_memory (fi, addr, buf, 2))
goto finish_prologue;
/* First see if this insn sets the stack pointer from a register; if
@@ -627,8 +625,7 @@ mn10300_analyze_prologue (struct frame_info *fi,
goto finish_prologue;
/* Get the next two bytes so the prologue scan can continue. */
- status = deprecated_read_memory_nobpt (addr, buf, 2);
- if (status != 0)
+ if (!safe_frame_unwind_memory (fi, addr, buf, 2))
goto finish_prologue;
}
@@ -648,8 +645,7 @@ mn10300_analyze_prologue (struct frame_info *fi,
goto finish_prologue;
/* Get two more bytes so scanning can continue. */
- status = deprecated_read_memory_nobpt (addr, buf, 2);
- if (status != 0)
+ if (!safe_frame_unwind_memory (fi, addr, buf, 2))
goto finish_prologue;
}
@@ -675,8 +671,7 @@ mn10300_analyze_prologue (struct frame_info *fi,
{
/* Suck in imm_size more bytes, they'll hold the size of the
current frame. */
- status = deprecated_read_memory_nobpt (addr + 2, buf, imm_size);
- if (status != 0)
+ if (!safe_frame_unwind_memory (fi, addr + 2, buf, imm_size))
goto finish_prologue;
/* Note the size of the stack in the frame info structure. */