diff options
author | dfr <dfr@FreeBSD.org> | 1998-07-26 18:47:47 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-07-26 18:47:47 +0000 |
commit | 0668f6953d2b612c16c813a72ae389004fe733e3 (patch) | |
tree | 48dd05525bcb166f807a81c333abae995511babc | |
parent | 9c96ae361d462080d2a7e5dacf4dfd6fe98aab3e (diff) | |
download | FreeBSD-src-0668f6953d2b612c16c813a72ae389004fe733e3.zip FreeBSD-src-0668f6953d2b612c16c813a72ae389004fe733e3.tar.gz |
Fix a stupid bug preventing gdb from seeing the right value of 'v0'.
-rw-r--r-- | sys/alpha/alpha/alpha-gdbstub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/alpha/alpha-gdbstub.c b/sys/alpha/alpha/alpha-gdbstub.c index 17d9907..c8ac9ef 100644 --- a/sys/alpha/alpha/alpha-gdbstub.c +++ b/sys/alpha/alpha/alpha-gdbstub.c @@ -592,7 +592,7 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code) * Ignore float regs for now. */ for (i = 0; i < FRAME_SIZE; i++) - if (tf2gdb[i] > 0) + if (tf2gdb[i] >= 0) registers.r[tf2gdb[i]] = raw_regs->tf_regs[i]; registers.pc = raw_regs->tf_regs[FRAME_PC]; @@ -727,7 +727,7 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code) * Map gdb registers back to trapframe (ignoring fp regs). */ for (i = 0; i < NUM_REGS; i++) - if (gdb2tf[i] > 0) + if (gdb2tf[i] >= 0) raw_regs->tf_regs[gdb2tf[i]] = registers.r[i]; raw_regs->tf_regs[FRAME_PC] = registers.pc; |