From: Andrew Cagney Date: Sun, 1 Aug 2004 14:34:39 +0000 (+0000) Subject: 2004-08-01 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e66299b3ddd428d2b611c51326140234a72be604;p=binutils-gdb.git 2004-08-01 Andrew Cagney * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f51436a1349..61264529e8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2004-08-01 Andrew Cagney + + * 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. + 2004-07-31 Andrew Cagney * trad-frame.c (trad_frame_get_prev_register): Rename diff --git a/gdb/trad-frame.c b/gdb/trad-frame.c index 58f6c1beb76..b9ee2e15e8e 100644 --- a/gdb/trad-frame.c +++ b/gdb/trad-frame.c @@ -97,6 +97,14 @@ trad_frame_set_value (struct trad_frame_saved_reg this_saved_regs[], this_saved_regs[regnum].addr = val; } +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; +} diff --git a/gdb/trad-frame.h b/gdb/trad-frame.h index 95c70282b8a..55a257f40f0 100644 --- a/gdb/trad-frame.h +++ b/gdb/trad-frame.h @@ -39,7 +39,12 @@ void trad_frame_set_id (struct trad_frame_cache *this_trad_cache, 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,