aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-07-03 00:19:58 +0000
committerPedro Alves <palves@redhat.com>2008-07-03 00:19:58 +0000
commitcaac88966e74e80449233ec8bc82d9616896a4fa (patch)
tree0f239d6ce75b9b86ba517ec2e7e5001608704d54
parent6ed45dfb5e49d05f51513cf14f073c2cbc2dfeac (diff)
downloadgdb-caac88966e74e80449233ec8bc82d9616896a4fa.zip
gdb-caac88966e74e80449233ec8bc82d9616896a4fa.tar.gz
gdb-caac88966e74e80449233ec8bc82d9616896a4fa.tar.bz2
* i386-tdep.c (i386_displaced_step_fixup): Condition log printing
on debug_displaced being set.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/i386-tdep.c5
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--;
}