From 76fb44f49a3d475d608e9fcb68391b7cbb8bb022 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Sun, 18 Nov 2001 21:38:59 +0000 Subject: [PATCH] * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect() conversion for I386_LINUX_ORIG_EAX_REGNUM. --- gdb/ChangeLog | 5 +++++ gdb/i386-linux-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5fae828661..04168d94bdb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-11-18 Kevin Buettner + + * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect() + conversion for I386_LINUX_ORIG_EAX_REGNUM. + 2001-11-18 Andrew Cagney * config/i386/embed.mt (TM_FILE): Set to tm-i386.h. diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index df0838b65dc..e91c8fc4dfc 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 -- 2.30.2