From 416117cc52fb20697e1c7cea9e1886a7263937cf Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 20 Nov 1995 09:21:12 +0000 Subject: [PATCH] make gdb handle all NUM_REGS registers; from jpo.drs@sni.de; netbsd pr#1651,1703 --- gnu/usr.bin/gdb/gdb/arch/i386/i386b-nat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/gdb/gdb/arch/i386/i386b-nat.c b/gnu/usr.bin/gdb/gdb/arch/i386/i386b-nat.c index c579c82cf10..68a3e55d874 100644 --- a/gnu/usr.bin/gdb/gdb/arch/i386/i386b-nat.c +++ b/gnu/usr.bin/gdb/gdb/arch/i386/i386b-nat.c @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: i386b-nat.c,v 1.1.1.1 1995/10/18 08:40:06 deraadt Exp $ + $Id: i386b-nat.c,v 1.2 1995/11/20 09:21:12 deraadt Exp $ */ #include @@ -43,7 +43,7 @@ fetch_inferior_registers (regno) ptrace (PT_GETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0); - memcpy (®isters[REGISTER_BYTE (0)], &inferior_registers, 4*14); + memcpy (®isters[REGISTER_BYTE (0)], &inferior_registers, NUM_REGS * 4); registers_fetched (); } @@ -54,7 +54,7 @@ store_inferior_registers (regno) { struct reg inferior_registers; - memcpy (&inferior_registers, ®isters[REGISTER_BYTE (0)], 4*14); + memcpy (&inferior_registers, ®isters[REGISTER_BYTE (0)], NUM_REGS * 4); ptrace (PT_SETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0); -- 2.20.1