From a144416fe3806b00141286cd011c90626ccefbea Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 10 Aug 2003 16:22:15 +0000 Subject: * i386bsd-nat.c (fetch_inferior_registers, store_inferior_registers): Don't use && at the end of a line. (_initialize_i386bsd_nat): Fix typo. --- gdb/ChangeLog | 4 ++++ gdb/i386bsd-nat.c | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 72a0d63..3c7b6da 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2003-08-10 Mark Kettenis + * i386bsd-nat.c (fetch_inferior_registers, + store_inferior_registers): Don't use && at the end of a line. + (_initialize_i386bsd_nat): Fix typo. + * frame.c (_initialize_frame): Add missing backslash. From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de): diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index 60524de..cd94a21 100644 --- a/gdb/i386bsd-nat.c +++ b/gdb/i386bsd-nat.c @@ -196,9 +196,9 @@ fetch_inferior_registers (int regno) #ifdef HAVE_PT_GETXMMREGS char xmmregs[512]; - if (have_ptrace_xmmregs != 0 && - ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) xmmregs, 0) == 0) + if (have_ptrace_xmmregs != 0 + && ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid), + (PTRACE_ARG3_TYPE) xmmregs, 0) == 0) { have_ptrace_xmmregs = 1; i387_supply_fxsave (xmmregs); @@ -252,9 +252,9 @@ store_inferior_registers (int regno) #ifdef HAVE_PT_GETXMMREGS char xmmregs[512]; - if (have_ptrace_xmmregs != 0 && - ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) xmmregs, 0) == 0) + if (have_ptrace_xmmregs != 0 + && ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid), + (PTRACE_ARG3_TYPE) xmmregs, 0) == 0) { have_ptrace_xmmregs = 1; @@ -408,7 +408,7 @@ _initialize_i386bsd_nat (void) #define SC_REG_OFFSET i386obsd_sc_reg_offset #else extern int i386bsd_sc_reg_offset[]; -#define SC_PC_OFFSET i386bsd_sc_reg_offset +#define SC_REG_OFFSET i386bsd_sc_reg_offset #endif /* We only check the program counter, stack pointer and frame -- cgit v1.1