[gdb/testsuite] Fix breakpoint regexp in gdb.ada/out_of_line_in_inlined.exp
authorTom de Vries <tdevries@suse.de>
Mon, 12 Jun 2023 09:14:24 +0000 (11:14 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 12 Jun 2023 09:14:24 +0000 (11:14 +0200)
commitd0cc647211981cfdcb402694ea43334ba2c236bd
tree0af1bbd9a4d3a5ec3eb88c5244957055e3116011
parent45601fb84d4705211b0477dd1bab2e73d39dc27c
[gdb/testsuite] Fix breakpoint regexp in gdb.ada/out_of_line_in_inlined.exp

With a gdb 13.2 based package on openSUSE Tumbleweed i586, I ran into:
...
(gdb) run ^M
Starting program: out_of_line_in_inlined/foo_o224_021-all ^M
[Thread debugging using libthread_db enabled]^M
Using host libthread_db library "/lib/libthread_db.so.1".^M
^M
Breakpoint 1.1, foo_o224_021.child1.child2 (s=...) at foo_o224_021.adb:26^M
26                  for C of S loop^M
(gdb) FAIL: gdb.ada/out_of_line_in_inlined.exp: scenario=all: \
  run to foo_o224_021.child1.child2
...

I can reproduce the same issue with gdb trunk on x86_64, by using optimize=-O3
instead of optimize=-O2.

Fix this by using $bkptno_num_re.

Tested on x86_64-linux.

PR testsuite/30539
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30539
gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp