]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Drop address from test name in gdb.mi/mi-memory-changed.exp
authorTom de Vries <tdevries@suse.de>
Mon, 10 Nov 2025 14:37:13 +0000 (15:37 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 10 Nov 2025 14:37:13 +0000 (15:37 +0100)
I ran the testsuite twice, once with target board unix, and once with target
board unix/-fPIE/-pie, compare the two sum files, and got for test-case
gdb.mi/mi-memory-changed.exp:
...
< PASS: $exp: set var *(unsigned int *) 0x4011b0 = 0xe5894855
---
> PASS: $exp: set var *(unsigned int *) 0x5555555551c3 = 0xe5894855
...

Fix this by dropping the concrete address from the test name:
...
PASS: $exp: set var *(unsigned int *) 0x${main_addr} = ${main_insn}
...

Tested on x86_64-linux.

gdb/testsuite/gdb.mi/mi-memory-changed.exp

index 6d02c33494493df09d8d0df53963b241ea5a46b6..10955846768e5b8f087c682aa8af799c238c9422 100644 (file)
@@ -75,5 +75,6 @@ gdb_expect {
 
 regsub ^0x0* $main_addr "" main_addr
 mi_gdb_test "set var *(unsigned int *) 0x${main_addr} = ${main_insn}" \
-    ".*=memory-changed,thread-group=\"i${decimal}\".addr=\"0x0*${main_addr}\",len=\"0x4\",type=\"code\".*\\^done"
+    ".*=memory-changed,thread-group=\"i${decimal}\".addr=\"0x0*${main_addr}\",len=\"0x4\",type=\"code\".*\\^done" \
+    {set var *(unsigned int *) 0x${main_addr} = ${main_insn}}
 mi_gdb_exit