aboutsummaryrefslogtreecommitdiff
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
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".
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/display.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e81c85c..e83ec79 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2020-09-17 Pedro Alves <pedro@palves.net>
+ * gdb.base/display.exp: Issue "set print asm-demangle on".
+
+2020-09-17 Pedro Alves <pedro@palves.net>
+
* gdb.base/find.c: Include <string.h>.
(init_bufs): Add cast.
* gdb.base/find.exp: Issue "set print asm-demangle on".
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"