From: Pedro Alves Date: Thu, 17 Sep 2020 22:33:43 +0000 (+0100) Subject: gdb.python/py-frame-inline.exp and C++ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd23068d52471aaf2f7cf80a1b4d8d987fccbf56;p=binutils-gdb.git 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. --- 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(\\(\\))?"