forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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 (" ");
|
||||
|
||||
Reference in New Issue
Block a user