diff options
author | Tom de Vries <tdevries@suse.de> | 2023-07-19 09:18:29 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-07-19 09:18:29 +0200 |
commit | 0d332f11122473192a944230e1d925bac115ca0d (patch) | |
tree | e1d445bd7e7cc1bacb36464e6d4bd7551b64f151 /makefile.vms | |
parent | 03c02b696e90714a0ae2c0200d3c65cfffcaa1ee (diff) | |
download | gdb-0d332f11122473192a944230e1d925bac115ca0d.zip gdb-0d332f11122473192a944230e1d925bac115ca0d.tar.gz gdb-0d332f11122473192a944230e1d925bac115ca0d.tar.bz2 |
[gdb/testsuite] Fix gdb.gdb/python-helper.exp with -O2 -flto=auto and gcc 7.5.0
With a gdb build with -O2 -flto=auto using gcc 7.5.0, I run into:
...
(gdb) ptype global_c^M
^M
Thread 1 "xgdb" hit Breakpoint 3, \
_Z12c_print_typeP4typePKcP7ui_fileii8languagePK18type_print_options () at \
gdb/c-typeprint.c:175^M
175 {^M
(outer-gdb) FAIL: gdb.gdb/python-helper.exp: hit breakpoint in outer gdb again
...
This is a problem with the debug info, which marks the CU containing the
function declaration as C rather than C++. This is fixed in gcc 8 and later.
Work around this compiler problem by allowing the mangled name.
Tested on x86_64-linux.
PR testsuite/30648
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30648
Diffstat (limited to 'makefile.vms')
0 files changed, 0 insertions, 0 deletions