From: Tom de Vries Date: Mon, 10 Nov 2025 14:37:13 +0000 (+0100) Subject: [gdb/testsuite] Drop address from test name in gdb.mi/mi-memory-changed.exp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2aaaad61c513e5d84feb40237d6bdd46528e9d;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Drop address from test name in gdb.mi/mi-memory-changed.exp 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. --- diff --git a/gdb/testsuite/gdb.mi/mi-memory-changed.exp b/gdb/testsuite/gdb.mi/mi-memory-changed.exp index 6d02c334944..10955846768 100644 --- a/gdb/testsuite/gdb.mi/mi-memory-changed.exp +++ b/gdb/testsuite/gdb.mi/mi-memory-changed.exp @@ -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