diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-13 11:13:28 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-13 11:13:28 +0200 |
commit | 7486cb6843e2146c38dfd4daae3e65d97fd44fc1 (patch) | |
tree | 76fc9841cbc7c60df7281b9867eea312b9549a3c /gas/ChangeLog | |
parent | fd5255582fde24b7021dc5163b004dad16bf2eec (diff) | |
download | fsf-binutils-gdb-7486cb6843e2146c38dfd4daae3e65d97fd44fc1.zip fsf-binutils-gdb-7486cb6843e2146c38dfd4daae3e65d97fd44fc1.tar.gz fsf-binutils-gdb-7486cb6843e2146c38dfd4daae3e65d97fd44fc1.tar.bz2 |
[gdb/testsuite] Fix gdb.gdb/selftest.exp
With a gdb build with CFLAGS "-O2 -g -flto=auto", I run into:
...
#7 gdb_main (args=0x7fffffffd220) at src/gdb/main.c:1368^M
#8 main (argc=<optimized out>, argv=<optimized out>) at src/gdb/gdb.c:32^M
(gdb) FAIL: gdb.gdb/selftest.exp: backtrace through signal handler
...
which means that this regexp in proc test_with_self fails:
...
-re "#0.*(read|poll).*in main \\(.*\\) at .*gdb\\.c.*$gdb_prompt $" {
...
The problem is that gdb_main has been inlined into main, and consequently the
backtrace uses:
...
#x <fn> ...
...
instead of
...
#x <address> in <fn> ...
...
Fix this by updating the regexp to not require "in" before " main".
Tested on x86_64-linux.
Diffstat (limited to 'gas/ChangeLog')
0 files changed, 0 insertions, 0 deletions