diff options
author | Mark Kettenis <kettenis@gnu.org> | 2009-04-05 22:37:20 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2009-04-05 22:37:20 +0000 |
commit | e5a6ba44d966c807a957321853c81df2c4352a04 (patch) | |
tree | 84e560a6f8fb467cff407629073c194058c98548 /gdb/sparc64nbsd-nat.c | |
parent | c7c7219d3a06a714e04e73ebd029811e6bd5bd37 (diff) | |
download | gdb-e5a6ba44d966c807a957321853c81df2c4352a04.zip gdb-e5a6ba44d966c807a957321853c81df2c4352a04.tar.gz gdb-e5a6ba44d966c807a957321853c81df2c4352a04.tar.bz2 |
* sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
Diffstat (limited to 'gdb/sparc64nbsd-nat.c')
-rw-r--r-- | gdb/sparc64nbsd-nat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/sparc64nbsd-nat.c b/gdb/sparc64nbsd-nat.c index 446f1ed..e445f3a 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); |