summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2005-03-05 01:57:20 +0000
committerMichael Snyder <msnyder@specifix.com>2005-03-05 01:57:20 +0000
commitb2d9d98d7a6b51e165dcf6de5e83ec34a94654c4 (patch)
treea47e089d6fa1e16a4a7aaeced7357ee4c314d7bd /gdb
parent2f857f27dd6064ba6831ccefd9efba799b81e32a (diff)
downloadgdb-b2d9d98d7a6b51e165dcf6de5e83ec34a94654c4.tar.gz
2005-03-04 Michael Snyder <msnyder@redhat.com>
* trad-frame.c (trad_frame_set_reg_value): New function. * trad-frame.h (trad_frame_set_reg_value): Export.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/trad-frame.c9
-rw-r--r--gdb/trad-frame.h3
3 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 64c302e0411..ec3ffa41bec 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-04 Michael Snyder <msnyder@redhat.com>
+
+ * trad-frame.c (trad_frame_set_reg_value): New function.
+ * trad-frame.h (trad_frame_set_reg_value): Export.
+
2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
* Makefile.in (remote.o): Update dependencies.
diff --git a/gdb/trad-frame.c b/gdb/trad-frame.c
index 8eef3f1323f..339ee34c6ec 100644
--- a/gdb/trad-frame.c
+++ b/gdb/trad-frame.c
@@ -98,6 +98,15 @@ trad_frame_set_value (struct trad_frame_saved_reg this_saved_regs[],
}
void
+trad_frame_set_reg_value (struct trad_frame_cache *this_trad_cache,
+ int regnum, LONGEST val)
+{
+ /* External interface for users of trad_frame_cache
+ (who cannot access the prev_regs object directly). */
+ trad_frame_set_value (this_trad_cache->prev_regs, regnum, val);
+}
+
+void
trad_frame_set_reg_realreg (struct trad_frame_cache *this_trad_cache,
int regnum, int realreg)
{
diff --git a/gdb/trad-frame.h b/gdb/trad-frame.h
index 55a257f40f0..713417b8034 100644
--- a/gdb/trad-frame.h
+++ b/gdb/trad-frame.h
@@ -49,6 +49,9 @@ void trad_frame_set_reg_unknown (struct trad_frame_cache *this_trad_cache,
int regnum, CORE_ADDR addr);
void trad_frame_set_reg_addr (struct trad_frame_cache *this_trad_cache,
int regnum, CORE_ADDR addr);
+void trad_frame_set_reg_value (struct trad_frame_cache *this_cache,
+ int regnum, LONGEST val);
+
void trad_frame_get_register (struct trad_frame_cache *this_trad_cache,
struct frame_info *next_frame,
int regnum, int *optimizedp,