Re: [PATCH] gdb: use gdb_test_multiple in gdb_breakpoint

Tom de Vries via Gdb-patches
2023-01-05T09:05:10Z

On 1/3/23 20:22, Simon Marchi via Gdb-patches wrote:
> - -re "$gdb_prompt $" {
> - if { $print_fail } {
> - fail $test_name
> - }
> - return 0
> - }

This caused:
...
FAIL: gdb.dwarf2/dw2-main-no-line-number.exp: gdb_breakpoint: set
breakpoint at 1
FAIL: gdb.dwarf2/dw2-main-no-line-number.exp:
!$breakpoint_at_missing_lineno_set
FAIL: gdb.go/methods.exp: going to first breakpoint (the program exited)
FAIL: gdb.go/methods.exp: going to second breakpoint (the program is no
longer running)
...

Re-inserting this piece of code fixes it.

Thanks,
- Tom