aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-11-18 21:38:59 +0000
committerKevin Buettner <kevinb@redhat.com>2001-11-18 21:38:59 +0000
commit76fb44f49a3d475d608e9fcb68391b7cbb8bb022 (patch)
tree3c5bd566ff5f3d5c953e8cbde7e5d7b5f5854882 /gdb/i386-linux-nat.c
parented909a0d77b41ec90ff950c84274c2ea7083743a (diff)
downloadgdb-76fb44f49a3d475d608e9fcb68391b7cbb8bb022.zip
gdb-76fb44f49a3d475d608e9fcb68391b7cbb8bb022.tar.gz
gdb-76fb44f49a3d475d608e9fcb68391b7cbb8bb022.tar.bz2
* i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
conversion for I386_LINUX_ORIG_EAX_REGNUM.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index df0838b..e91c8fc 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -325,7 +325,7 @@ fill_gregset (elf_gregset_t *gregsetp, int regno)
regcache_collect (i, regp + regmap[i]);
if (regno == -1 || regno == I386_LINUX_ORIG_EAX_REGNUM)
- regcache_collect (I386_LINUX_ORIG_EAX_REGNUM, regp + regmap[ORIG_EAX]);
+ regcache_collect (I386_LINUX_ORIG_EAX_REGNUM, regp + ORIG_EAX);
}
#ifdef HAVE_PTRACE_GETREGS