From caac88966e74e80449233ec8bc82d9616896a4fa Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 3 Jul 2008 00:19:58 +0000 Subject: [PATCH] * i386-tdep.c (i386_displaced_step_fixup): Condition log printing on debug_displaced being set. --- gdb/ChangeLog | 5 +++++ gdb/i386-tdep.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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--; } -- 2.30.2