aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-28 13:42:49 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-28 13:42:49 +0000
commitf700a3641b8311d5b1a84f35a5d1a636dcb33f38 (patch)
tree138d6b1e53d980a700ed22855dda0cc0925b7039 /gdb/sparc64-tdep.c
parent5810296be62760e74b4170e0f8bb778a636a0e3e (diff)
downloadgdb-f700a3641b8311d5b1a84f35a5d1a636dcb33f38.zip
gdb-f700a3641b8311d5b1a84f35a5d1a636dcb33f38.tar.gz
gdb-f700a3641b8311d5b1a84f35a5d1a636dcb33f38.tar.bz2
* sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
Handle StackGhost in 64-bit code. * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r--gdb/sparc64-tdep.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index f8087b4..6038ceb 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -519,6 +519,29 @@ sparc64_frame_prev_register (struct frame_info *next_frame, void **this_cache,
return;
}
+ /* Handle StackGhost. */
+ {
+ ULONGEST wcookie = sparc_fetch_wcookie ();
+
+ if (wcookie != 0 && !cache->frameless_p && regnum == SPARC_I7_REGNUM)
+ {
+ *optimizedp = 0;
+ *lvalp = not_lval;
+ *addrp = 0;
+ *realnump = -1;
+ if (valuep)
+ {
+ CORE_ADDR addr = cache->base + (regnum - SPARC_L0_REGNUM) * 8;
+ ULONGEST i7;
+
+ /* Read the value in from memory. */
+ i7 = get_frame_memory_unsigned (next_frame, addr, 8);
+ store_unsigned_integer (valuep, 8, i7 ^ wcookie);
+ }
+ return;
+ }
+ }
+
/* The previous frame's `local' and `in' registers have been saved
in the register save area. */
if (!cache->frameless_p