aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-04-29 17:30:07 +0200
committerTom de Vries <tdevries@suse.de>2025-04-29 17:30:07 +0200
commit112608984f830faab22815b69d74ad60ae2af8e9 (patch)
tree71a705661a951b4d1dea7fcda210d8d9f194afc7 /gdb/python/python.h
parenta6af579207d45bcd92c5388f9d59030b4ef9beae (diff)
downloadbinutils-112608984f830faab22815b69d74ad60ae2af8e9.zip
binutils-112608984f830faab22815b69d74ad60ae2af8e9.tar.gz
binutils-112608984f830faab22815b69d74ad60ae2af8e9.tar.bz2
[gdb/testsuite] Fix gdb.python/py-objfile.exp with gcc 15
When running test-case gdb.python/py-objfile.exp with gcc 15, we get: ... (gdb) p main^M $2 = {int (void)} 0x40066c <main>^M (gdb) FAIL: $exp: print main with debug info ... The source file declares main as "int main ()" ... and until C23 this meant a non-prototype function declaration and we'd have: ... (gdb) p main^M $2 = {int ()} 0x40066c <main>^M ... However, starting C23 "int main ()" is simply equivalent to "int main (void)". Fix this by: - declaring main as "int main (void)" in the test-case, and - updating the regexp to expect an "int (void)" prototype. Likewise in gdb.base/jit-bfd-name.exp. Tested on aarch64-linux. Approved-By: Tom Tromey <tom@tromey.com> PR testsuite/32756 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32756
Diffstat (limited to 'gdb/python/python.h')
0 files changed, 0 insertions, 0 deletions