aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-09 22:08:13 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-09 22:08:13 +0000
commit5b2d44a05d619213499bea50fb4044707eaa159d (patch)
tree996f521e6af34a9a58d265be36dca932ba65fa40 /gdb/sparc64-tdep.c
parente5a8e242a83d8a2f01a3a3d92e6cf1beb22d3266 (diff)
downloadgdb-5b2d44a05d619213499bea50fb4044707eaa159d.zip
gdb-5b2d44a05d619213499bea50fb4044707eaa159d.tar.gz
gdb-5b2d44a05d619213499bea50fb4044707eaa159d.tar.bz2
* sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
address for 64-bit code. (sparc_unwind_dummy_id): Likewise. * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new frame base address convention. (sparc64_push_dummy_call): Likewise. * sparc64nbsd-tdep.c: Update copyright year. (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base address for 64-bit code. (sparc64nbsd_init_abi): Tweak comment. * sparc64obsd-tdep.c: Update copyright year. (sparc64obsd_frame_cache): Adjust cached frame base address for 64-bit code. (sparc64obsd_init_abi): Tweak comment.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r--gdb/sparc64-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index fbef9a9..f8087b4 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -526,7 +526,7 @@ sparc64_frame_prev_register (struct frame_info *next_frame, void **this_cache,
{
*optimizedp = 0;
*lvalp = lval_memory;
- *addrp = cache->base + BIAS + (regnum - SPARC_L0_REGNUM) * 8;
+ *addrp = cache->base + (regnum - SPARC_L0_REGNUM) * 8;
*realnump = -1;
if (valuep)
{
@@ -572,7 +572,7 @@ sparc64_frame_base_address (struct frame_info *next_frame, void **this_cache)
struct sparc_frame_cache *cache =
sparc64_frame_cache (next_frame, this_cache);
- return cache->base + BIAS;
+ return cache->base;
}
static const struct frame_base sparc64_frame_base =
@@ -973,7 +973,7 @@ sparc64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
/* Finally, update the stack pointer. */
regcache_cooked_write_unsigned (regcache, SPARC_SP_REGNUM, sp);
- return sp;
+ return sp + BIAS;
}