* i386-tdep.c (i386_displaced_step_fixup): Condition log printing
authorPedro Alves <palves@redhat.com>
Thu, 3 Jul 2008 00:19:58 +0000 (00:19 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 3 Jul 2008 00:19:58 +0000 (00:19 +0000)
on debug_displaced being set.

gdb/ChangeLog
gdb/i386-tdep.c

index c0ec8bc51925be0945438110f47c9b63f16501df..182a7d6f6c3d507463a929012b996aa7f4cc44c1 100644 (file)
@@ -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
index 9dced322ba4b6705b7d52e6c8e7eb8407c67142b..4888b2baad0f9f94082d248f388af9e9af57935c 100644 (file)
@@ -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--;
             }