aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2007-06-21 15:26:05 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2007-06-21 15:26:05 +0000
commit6a2eb47454bb7f4c86c7841c3a6c482222577904 (patch)
tree3caa9254b1318757a3131d00f2a84850e863417a /gdb/printcmd.c
parenta4642986412fbd22873bf4f64e4d3ee7c5aeabac (diff)
downloadgdb-6a2eb47454bb7f4c86c7841c3a6c482222577904.zip
gdb-6a2eb47454bb7f4c86c7841c3a6c482222577904.tar.gz
gdb-6a2eb47454bb7f4c86c7841c3a6c482222577904.tar.bz2
gdb/:
* printcmd.c (do_one_display): If display/i, start with an initial line feed to avoid bad layout if there is a branch delay slot. gdb/testsuite/: * gdb.base/display.exp: Allow a newline after display/i. * gdb.base/pc-fp.exp: Likewise. * gdb.base/sigbpt.exp: Likewise.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 45d7e8a..98d2848 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1520,7 +1520,7 @@ do_one_display (struct display *d)
print_expression (d->exp, gdb_stdout);
annotate_display_expression_end ();
- if (d->format.count != 1)
+ if (d->format.count != 1 || d->format.format == 'i')
printf_filtered ("\n");
else
printf_filtered (" ");