diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-01 14:34:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-01 14:34:39 +0000 |
commit | e66299b3ddd428d2b611c51326140234a72be604 (patch) | |
tree | b3081258de2b327933cc0cb6b46fb88c7bd0814a /gdb/trad-frame.c | |
parent | b6702b23360ddb41470fd527a6e2ef6ad457f6be (diff) | |
download | ppe42-binutils-e66299b3ddd428d2b611c51326140234a72be604.tar.gz ppe42-binutils-e66299b3ddd428d2b611c51326140234a72be604.zip |
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.
Diffstat (limited to 'gdb/trad-frame.c')
-rw-r--r-- | gdb/trad-frame.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/trad-frame.c b/gdb/trad-frame.c index 58f6c1beb7..b9ee2e15e8 100644 --- a/gdb/trad-frame.c +++ b/gdb/trad-frame.c @@ -98,6 +98,14 @@ trad_frame_set_value (struct trad_frame_saved_reg this_saved_regs[], } 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_cache *this_trad_cache, { (*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; +} |