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.
This commit is contained in:
Pedro Alves 2020-09-17 23:33:43 +01:00
parent 0640a54339
commit dd23068d52
2 changed files with 6 additions and 1 deletions

View 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.

View 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(\\(\\))?"