* 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.
This commit is contained in:
Maciej W. Rozycki
2007-06-21 15:26:05 +00:00
parent a464298641
commit 6a2eb47454
6 changed files with 26 additions and 14 deletions

View File

@@ -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 (" ");