This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Add more trad-frame get/set methods
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 01 Aug 2004 10:27:59 -0400
- Subject: [commit] Add more trad-frame get/set methods
FYI,
Andrew
2004-08-01 Andrew Cagney <cagney@gnu.org>
* trad-frame.c (trad_frame_get_this_base)
(trad_frame_set_this_base, trad_frame_set_reg_realreg): New
functions.
* trad-frame.h (trad_frame_set_this_base)
(trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
Index: trad-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/trad-frame.c,v
retrieving revision 1.6
diff -p -u -r1.6 trad-frame.c
--- trad-frame.c 31 Jul 2004 21:53:17 -0000 1.6
+++ trad-frame.c 1 Aug 2004 14:26:13 -0000
@@ -98,6 +98,14 @@ trad_frame_set_value (struct trad_frame_
}
void
+trad_frame_set_reg_realreg (struct trad_frame_cache *this_trad_cache,
+ int regnum, int realreg)
+{
+ this_trad_cache->prev_regs[regnum].realreg = realreg;
+ this_trad_cache->prev_regs[regnum].addr = -1;
+}
+
+void
trad_frame_set_reg_addr (struct trad_frame_cache *this_trad_cache,
int regnum, CORE_ADDR addr)
{
@@ -184,3 +192,16 @@ trad_frame_get_id (struct trad_frame_cac
{
(*this_id) = this_trad_cache->this_id;
}
+
+void
+trad_frame_set_this_base (struct trad_frame_cache *this_trad_cache,
+ CORE_ADDR this_base)
+{
+ this_trad_cache->this_base = this_base;
+}
+
+CORE_ADDR
+trad_frame_get_this_base (struct trad_frame_cache *this_trad_cache)
+{
+ return this_trad_cache->this_base;
+}
Index: trad-frame.h
===================================================================
RCS file: /cvs/src/src/gdb/trad-frame.h,v
retrieving revision 1.7
diff -p -u -r1.7 trad-frame.h
--- trad-frame.h 31 Jul 2004 21:53:17 -0000 1.7
+++ trad-frame.h 1 Aug 2004 14:26:13 -0000
@@ -39,7 +39,12 @@ void trad_frame_set_id (struct trad_fram
struct frame_id this_id);
void trad_frame_get_id (struct trad_frame_cache *this_trad_cache,
struct frame_id *this_id);
+void trad_frame_set_this_base (struct trad_frame_cache *this_trad_cache,
+ CORE_ADDR this_base);
+CORE_ADDR trad_frame_get_this_base (struct trad_frame_cache *this_trad_cache);
+void trad_frame_set_reg_realreg (struct trad_frame_cache *this_trad_cache,
+ int regnum, int realreg);
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,