summaryrefslogtreecommitdiff
path: root/gdb/sparc64nbsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2009-04-05 22:37:19 +0000
committerMark Kettenis <kettenis@gnu.org>2009-04-05 22:37:19 +0000
commit204034ea25dd552ffb3c464e3495373ae95a1c29 (patch)
tree298818e87d2bc4d0eef3966bc7f24ce01c4c9945 /gdb/sparc64nbsd-nat.c
parent631162cfc21c649cc7b4348c34d82141458c3897 (diff)
downloadgdb-204034ea25dd552ffb3c464e3495373ae95a1c29.tar.gz
* sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
Diffstat (limited to 'gdb/sparc64nbsd-nat.c')
-rw-r--r--gdb/sparc64nbsd-nat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/sparc64nbsd-nat.c b/gdb/sparc64nbsd-nat.c
index 446f1edcb95..e445f3a82a9 100644
--- a/gdb/sparc64nbsd-nat.c
+++ b/gdb/sparc64nbsd-nat.c
@@ -141,9 +141,9 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
/* The following is true for NetBSD 1.6.2:
- The pcb contains %sp and %pc, %psr and %wim. From this information
- we reconstruct the register state as it would look when we just
- returned from cpu_switch(). */
+ The pcb contains %sp and %pc, %pstate and %cwp. From this
+ information we reconstruct the register state as it would look
+ when we just returned from cpu_switch(). */
/* The stack pointer shouldn't be zero. */
if (pcb->pcb_sp == 0)
@@ -155,7 +155,6 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
read_memory(pcb->pcb_sp + BIAS - 176 + (11 * 8),
(gdb_byte *)&pcb->pcb_pc, sizeof pcb->pcb_pc);
-
regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp);
regcache_raw_supply (regcache, SPARC64_PC_REGNUM, &pcb->pcb_pc);