gdb.python/py-frame-inline.exp and C++
authorPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 22:33:43 +0000 (23:33 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 23:09:02 +0000 (00:09 +0100)
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
gdb/testsuite/gdb.python/py-frame-inline.exp

index 587f1ae14249625afe14633a3748ceab043ec3ee..ded85f23d3bcf5927ef0dd4a0d4149c4db28a900 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-17  Pedro Alves  <pedro@palves.net>
+
+       * gdb.python/py-frame-inline.exp: Adjust to optionally expect a
+       full prototype.
+
 2020-09-17  Pedro Alves  <pedro@palves.net>
 
        * gdb.python/py-as-string.c: Add cast.
index 71bffd375db4b02e823cb426fb1bb27baf27d906..2b3d8e2b0e1d0ab145ac4ee1e7e5930d0570b299 100644 (file)
@@ -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(\\(\\))?"