diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-03-28 15:29:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-03-28 15:29:37 +0000 |
commit | 8391b9b130f1cf0358166dd4b5ee1f037abc7c0f (patch) | |
tree | 012eea0a67e45d0c223750b7d97ed84f4aee02f9 | |
parent | 832bc18607ac03bf3e1cdc1fe160c28ba9461850 (diff) | |
download | gdb-8391b9b130f1cf0358166dd4b5ee1f037abc7c0f.zip gdb-8391b9b130f1cf0358166dd4b5ee1f037abc7c0f.tar.gz gdb-8391b9b130f1cf0358166dd4b5ee1f037abc7c0f.tar.bz2 |
* sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
StackGhost.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/sparc64nbsd-tdep.c | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 88abf01..077796a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2005-03-28 Mark Kettenis <kettenis@gnu.org> + * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle + StackGhost. + * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Handle StackGhost in 64-bit code. * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost. diff --git a/gdb/sparc64nbsd-tdep.c b/gdb/sparc64nbsd-tdep.c index 7d4b193..29b1379 100644 --- a/gdb/sparc64nbsd-tdep.c +++ b/gdb/sparc64nbsd-tdep.c @@ -133,6 +133,20 @@ sparc64nbsd_sigcontext_saved_regs (CORE_ADDR sigcontext_addr, regnum <= SPARC_I7_REGNUM; regnum++, addr += 8) saved_regs[regnum].addr = addr; + /* Handle StackGhost. */ + { + ULONGEST wcookie = sparc_fetch_wcookie (); + + if (wcookie != 0) + { + ULONGEST i7; + + addr = saved_regs[SPARC_I7_REGNUM].addr; + i7 = get_frame_memory_unsigned (next_frame, addr, 8); + trad_frame_set_value (saved_regs, SPARC_I7_REGNUM, i7 ^ wcookie); + } + } + /* TODO: Handle the floating-point registers. */ return saved_regs; |