From 73e18ac9dab5b395fefa2034c7b9829425629b57 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 17 Sep 2020 23:33:40 +0100 Subject: 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". --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/display.exp | 3 +++ 2 files changed, 7 insertions(+) (limited to 'gdb') 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 + * gdb.base/display.exp: Issue "set print asm-demangle on". + +2020-09-17 Pedro Alves + * gdb.base/find.c: Include . (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" -- cgit v1.1