diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-03 00:19:58 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-03 00:19:58 +0000 |
commit | caac88966e74e80449233ec8bc82d9616896a4fa (patch) | |
tree | 0f239d6ce75b9b86ba517ec2e7e5001608704d54 /gdb/i386-tdep.c | |
parent | 6ed45dfb5e49d05f51513cf14f073c2cbc2dfeac (diff) | |
download | gdb-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.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
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--; } |