From 6a2eb47454bb7f4c86c7841c3a6c482222577904 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 21 Jun 2007 15:26:05 +0000 Subject: 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. --- gdb/testsuite/gdb.base/pc-fp.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.base/pc-fp.exp') diff --git a/gdb/testsuite/gdb.base/pc-fp.exp b/gdb/testsuite/gdb.base/pc-fp.exp index ac5b1c050a1..0ebce9dc5de 100644 --- a/gdb/testsuite/gdb.base/pc-fp.exp +++ b/gdb/testsuite/gdb.base/pc-fp.exp @@ -82,7 +82,7 @@ set valueof_fp [get_valueofx "/x" "\$fp" "0"] # display since that encodes and then decodes the expression parameter # (and hence uses the mechanisms we're trying to test). -gdb_test "display/i \$pc" "1: x/i +\\\$pc +${valueof_pc}.*" +gdb_test "display/i \$pc" "1: x/i +\\\$pc( +|\r\n)${valueof_pc}.*" gdb_test "display/w \$fp" "2: x/xw +\\\$fp +${valueof_fp}.*" # FIXME: cagney/2002-09-04: Should also check that ``info registers -- cgit v1.2.1