gdb: ensure test_name is initialized in gdb_breakpoint
A refactoring in 4b9728bec1
(gdb: use gdb_test_multiple in
gdb_breakpoint) left the $test_name variable undefined.
This patch fixes this.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
d654ad96eb
commit
4036ad07f4
1 changed files with 2 additions and 1 deletions
|
@ -639,8 +639,9 @@ proc gdb_breakpoint { linespec args } {
|
|||
set print_pass 1
|
||||
}
|
||||
|
||||
set test_name "gdb_breakpoint: set breakpoint at $linespec"
|
||||
# The first two regexps are what we get with -g, the third is without -g.
|
||||
gdb_test_multiple "$break_command $linespec" "gdb_breakpoint: set breakpoint at $linespec" {
|
||||
gdb_test_multiple "$break_command $linespec" $test_name {
|
||||
-re "$break_message \[0-9\]* at .*: file .*, line $decimal.\r\n$gdb_prompt $" {}
|
||||
-re "$break_message \[0-9\]*: file .*, line $decimal.\r\n$gdb_prompt $" {}
|
||||
-re "$break_message \[0-9\]* at .*$gdb_prompt $" {}
|
||||
|
|
Loading…
Add table
Reference in a new issue