diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/i386-tdep.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0ec8bc..182a7d6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-07-03 Pedro Alves <pedro@codesourcery.com> + + * i386-tdep.c (i386_displaced_step_fixup): Condition log printing + on debug_displaced being set. + 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> * 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 9dced32..4888b2b 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--; } |