This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] make unconditional displaced stepping log output conditional
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 3 Jul 2008 01:22:00 +0100
- Subject: [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--;
}