mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
[gdb/testsuite] Make pass message unique in gdb-index.exp for cc-with-dwz-m
With cc-with-dwz-m, we get: ... PASS: gdb.dwarf2/gdb-index.exp: objcopy PASS: gdb.dwarf2/gdb-index.exp: objcopy ... Make the pass message unique by using with_test_prefix: ... PASS: gdb.dwarf2/gdb-index.exp: objcopy PASS: gdb.dwarf2/gdb-index.exp: modify dwz file: objcopy ... Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2019-09-29 Tom de Vries <tdevries@suse.de> * gdb.dwarf2/gdb-index.exp: Use with_test_prefix for second objcopy.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2019-09-29 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
* gdb.dwarf2/gdb-index.exp: Use with_test_prefix for second objcopy.
|
||||||
|
|
||||||
2019-09-27 Tom de Vries <tdevries@suse.de>
|
2019-09-27 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
* gdb.reverse/step-precsave.exp: Add missing $gdb_prompt in regexps.
|
* gdb.reverse/step-precsave.exp: Add missing $gdb_prompt in regexps.
|
||||||
|
@ -59,14 +59,16 @@ proc add_gdb_index { program } {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if { [remote_file host exists ${dwz_index_file}] } {
|
with_test_prefix "modify dwz file" {
|
||||||
# We're modifying $dwz in place, otherwise we'd have to update
|
if { [remote_file host exists ${dwz_index_file}] } {
|
||||||
# .gnu_debugaltlink in $program.
|
# We're modifying $dwz in place, otherwise we'd have to update
|
||||||
set args [join [list "--remove-section .gdb_index" \
|
# .gnu_debugaltlink in $program.
|
||||||
" --add-section .gdb_index=$dwz_index_file" \
|
set args [join [list "--remove-section .gdb_index" \
|
||||||
" --set-section-flags .gdb_index=readonly $dwz"]]
|
" --add-section .gdb_index=$dwz_index_file" \
|
||||||
if {[run_on_host "objcopy" [gdb_find_objcopy] "$args"]} {
|
" --set-section-flags .gdb_index=readonly $dwz"]]
|
||||||
return ""
|
if {[run_on_host "objcopy" [gdb_find_objcopy] "$args"]} {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user