]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Remove address from test names
authorTom de Vries <tdevries@suse.de>
Thu, 27 Oct 2022 15:14:33 +0000 (17:14 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 27 Oct 2022 15:14:33 +0000 (17:14 +0200)
I noticed an address in a test name:
...
PASS: gdb.base/eh_return.exp: gdb_breakpoint: \
  set breakpoint at *0x000000000040071b
...

Stabilize the test name by using "set breakpoint on address" instead.

Likewise in two other test-cases.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/eh_return.exp
gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
gdb/testsuite/gdb.opt/inline-break.exp

index 6e4b9bd0bba93b936190cc11a5e5149c34fe9fe0..a6dda78e01376f1aa6d11b01eda2b7f63f38b9cc 100644 (file)
@@ -73,7 +73,7 @@ if { $address == -1 } {
 
 clean_restart ${binfile}
 
-gdb_breakpoint "*$address" message
+gdb_assert [gdb_breakpoint "*$address" no-message] "set breakpoint on address"
 
 # The assert did not reproduce when running to main, and continuing to the
 # breakpoint, so instead, run to the breakpoint.
index 17537585ad2368e8261629e5775174cbad884416..2e479d6ebe201fe30c25f41a621999972f04be5e 100644 (file)
@@ -45,7 +45,7 @@ if { $next_insn_addr == "" } {
     return -1
 }
 
-gdb_test "b *$next_insn_addr" "Breakpoint .*"
+gdb_test "b *$next_insn_addr" "Breakpoint .*" "set breakpoint on address"
 
 # So that GDB doesn't try to remove the regular breakpoint when the
 # step finishes.
index 24dd6ebaf0adb7cca5e6eb243aa00f5e058837fb..708fd74aa1e538678577eb84e8c776ed3a3f5262 100644 (file)
@@ -292,7 +292,9 @@ with_test_prefix "address" {
 
     # Set the breakpoint by address, and check that GDB reports the
     # breakpoint location being the inline function.
-    gdb_test "break *$address" ".*Breakpoint .* at $address: file .*$srcfile, line $line."
+    gdb_test "break *$address" \
+       ".*Breakpoint .* at $address: file .*$srcfile, line $line." \
+       "set breakpoint on address"
 
     gdb_test "info break \$bpnum" "in func1 at .*$srcfile:$line"