diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-12-22 14:09:17 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-12-22 14:09:17 +0000 |
commit | 7238f00288e6636f71fd6eede5cd929683861be1 (patch) | |
tree | 1d8600f99ffae06020b315519ee907591ee04f51 /gdb/amd64obsd-tdep.c | |
parent | f6acec6208a44cd7da34bb2d19ddde2fd3a51d91 (diff) | |
download | gdb-7238f00288e6636f71fd6eede5cd929683861be1.zip gdb-7238f00288e6636f71fd6eede5cd929683861be1.tar.gz gdb-7238f00288e6636f71fd6eede5cd929683861be1.tar.bz2 |
* amd64obsd-tdep.c (amd64obsd_trapframe_cache): Fix detection of
interrupts from user space.
* i386obsd-tdep.c (i386obsd_trapframe_cache): Handle interrupt
frames too.
(i386obsd_trapframe_sniffer): Turn into a proper unwinder sniffer.
(i386obsd_trapframe_unwind): Add sniffer.
(i386obsd_init_abi): Prepend i386obsd_trapframe_unwind instead of
appending i386obsd_trapframe_sniffer.
Diffstat (limited to 'gdb/amd64obsd-tdep.c')
-rw-r--r-- | gdb/amd64obsd-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64obsd-tdep.c b/gdb/amd64obsd-tdep.c index 30e8fc1..a0611c0 100644 --- a/gdb/amd64obsd-tdep.c +++ b/gdb/amd64obsd-tdep.c @@ -370,7 +370,7 @@ amd64obsd_trapframe_cache(struct frame_info *next_frame, void **this_cache) trad_frame_set_reg_addr (cache, i, addr + amd64obsd_tf_reg_offset[i]); /* Read %cs from trap frame. */ - addr = sp + amd64obsd_tf_reg_offset[AMD64_CS_REGNUM]; + addr += amd64obsd_tf_reg_offset[AMD64_CS_REGNUM]; cs = read_memory_unsigned_integer (addr, 8); if ((cs & I386_SEL_RPL) == I386_SEL_UPL) { |