This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] make unconditional displaced stepping log output conditional


Checked in.

-- 
Pedro Alves
2008-07-03  Pedro Alves  <pedro@codesourcery.com>

	* i386-tdep.c (i386_displaced_step_fixup): Condition log printing
	on debug_displaced being set.

---
 gdb/i386-tdep.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: src/gdb/i386-tdep.c
===================================================================
--- src.orig/gdb/i386-tdep.c	2008-07-03 01:15:37.000000000 +0100
+++ src/gdb/i386-tdep.c	2008-07-03 01:18:47.000000000 +0100
@@ -450,8 +450,9 @@ i386_displaced_step_fixup (struct gdbarc
              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--;
             }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]