From dd23068d52471aaf2f7cf80a1b4d8d987fccbf56 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 17 Sep 2020 23:33:43 +0100 Subject: [PATCH] gdb.python/py-frame-inline.exp and C++ Make the testcase work when built with a C++ compiler. gdb/testsuite/ChangeLog: * gdb.python/py-frame-inline.exp: Adjust to optionally expect a full prototype. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.python/py-frame-inline.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 587f1ae1424..ded85f23d3b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-09-17 Pedro Alves + + * gdb.python/py-frame-inline.exp: Adjust to optionally expect a + full prototype. + 2020-09-17 Pedro Alves * gdb.python/py-as-string.c: Add cast. diff --git a/gdb/testsuite/gdb.python/py-frame-inline.exp b/gdb/testsuite/gdb.python/py-frame-inline.exp index 71bffd375db..2b3d8e2b0e1 100644 --- a/gdb/testsuite/gdb.python/py-frame-inline.exp +++ b/gdb/testsuite/gdb.python/py-frame-inline.exp @@ -54,4 +54,4 @@ gdb_test "python print (gdb.newest_frame())" ".*" # Regression test to verify that Frame.function works properly for # inline frames. -gdb_test "python print (gdb.newest_frame().function())" "f" +gdb_test "python print (gdb.newest_frame().function())" "f(\\(\\))?" -- 2.30.2