This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix typo in i386bsd-nat.c
- From: Mark Kettenis <kettenis at science dot uva dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 30 Dec 2001 01:34:12 +0100 (MET)
- Subject: [PATCH] Fix typo in i386bsd-nat.c
Quite embarrassing since I wrote this code in the first place.
Anyway, FreeBSD and OpenBSD users can now enjoy the real value of
%ebx.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c (reg_offset): Fix typo.
Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.9
diff -u -p -r1.9 i386bsd-nat.c
--- i386bsd-nat.c 2001/07/21 20:16:44 1.9
+++ i386bsd-nat.c 2001/12/29 20:12:37
@@ -71,7 +71,7 @@ static int reg_offset[] =
REG_OFFSET (r_eax),
REG_OFFSET (r_ecx),
REG_OFFSET (r_edx),
- REG_OFFSET (r_edx),
+ REG_OFFSET (r_ebx),
REG_OFFSET (r_esp),
REG_OFFSET (r_ebp),
REG_OFFSET (r_esi),