aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/display.exp
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2020-09-17 23:33:40 +0100
committerPedro Alves <pedro@palves.net>2020-09-18 00:03:37 +0100
commit73e18ac9dab5b395fefa2034c7b9829425629b57 (patch)
tree8a3f9cee29a4d504713f2329850861b182a2c5d8 /gdb/testsuite/gdb.base/display.exp
parentc8b188085d2048b8a2c3e55ea2ef71993717bd3b (diff)
downloadgdb-73e18ac9dab5b395fefa2034c7b9829425629b57.zip
gdb-73e18ac9dab5b395fefa2034c7b9829425629b57.tar.gz
gdb-73e18ac9dab5b395fefa2034c7b9829425629b57.tar.bz2
gdb.base/display.exp C++ify
This makes the testcase work when compiled with C++ compiler. gdb/testsuite/ChangeLog: * gdb.base/display.exp: Issue "set print asm-demangle on".
Diffstat (limited to 'gdb/testsuite/gdb.base/display.exp')
-rw-r--r--gdb/testsuite/gdb.base/display.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp
index a9d4f75..242e13b 100644
--- a/gdb/testsuite/gdb.base/display.exp
+++ b/gdb/testsuite/gdb.base/display.exp
@@ -195,6 +195,9 @@ gdb_test "print j" " = 0\[\\r\\n\]+" "debug test output 3"
# x/0 j doesn't produce any output and terminates PA64 process when testing
gdb_test_no_output "x/0 j"
+# For when the test is built in C++ mode.
+gdb_test_no_output "set print asm-demangle on"
+
gdb_test "print/0 j" ".*Item count other than 1 is meaningless.*"
gdb_test "print/s sum" " = 1000" "ignored s"
gdb_test "print/i sum" ".*Format letter.*is meaningless.*.*" "no i"