From: Pedro Alves Date: Thu, 3 Jul 2008 00:19:58 +0000 (+0000) Subject: * i386-tdep.c (i386_displaced_step_fixup): Condition log printing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=caac88966e74e80449233ec8bc82d9616896a4fa;p=binutils-gdb.git * i386-tdep.c (i386_displaced_step_fixup): Condition log printing on debug_displaced being set. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0ec8bc5192..182a7d6f6c3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-07-03 Pedro Alves + + * i386-tdep.c (i386_displaced_step_fixup): Condition log printing + on debug_displaced being set. + 2008-06-30 Daniel Jacobowitz * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 9dced322ba4..4888b2baad0 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -450,8 +450,9 @@ i386_displaced_step_fixup (struct gdbarch *gdbarch, presenting them to GDB.) */ if (i386_breakpoint_p (insn)) { - fprintf_unfiltered (gdb_stdlog, - "displaced: stepped breakpoint\n"); + if (debug_displaced) + fprintf_unfiltered (gdb_stdlog, + "displaced: stepped breakpoint\n"); eip--; }