Fix clean_restart <absolute filename> in gdb.arch/aarch64*.exp.
Tested on aarch64-linux, M1 system.
There's a large number (44) of unsupported, for the following reasons:
- allow_aarch64_gcs_tests
- allow_aarch64_mops_tests
- allow_aarch64_sve_tests / target does not support SVE
- memory tagging unsupported
Consequently, we mostly use the simple substitution:
...
clean_restart $binfile
->
clean_restart
gdb_load $binfile
...
}
if {$core_generated} {
- clean_restart $binfile
+ clean_restart
+ gdb_load $binfile
with_test_prefix "OS corefile" {
# Read GCSPR value from saved output of the test program.
return
}
-clean_restart $binfile
+clean_restart
+gdb_load $binfile
if ![runto $linespec] {
return
gdb_assert { $gcore_generated } "gcore corefile created"
if {$gcore_generated} {
- clean_restart $binfile
+ clean_restart
+ gdb_load $binfile
with_test_prefix "gcore corefile" {
check_core_file $gcore_filename $gcspr_in_gcore
proc restart_and_run_infcall_call2 {} {
global binfile call2_line
- clean_restart ${binfile}
+ clean_restart
+ gdb_load $binfile
if ![runto_main] {
return
}
gdb_continue_to_end
}
-clean_restart ${binfile}
+clean_restart
+gdb_load $binfile
if ![runto ${begin_line}] {
return
}
gdb_continue_to_end
}
-clean_restart ${binfile}
+clean_restart
+gdb_load $binfile
if ![runto_main] {
return
}
"test value of gcspr when GCS SIGSEGV happens"
# Test writing to GCSPR.
-clean_restart ${binfile}
+clean_restart
+gdb_load $binfile
if ![runto normal_function0] {
return
}
# both correctly.
if {$gcore_generated} {
- clean_restart ${binfile}
+ clean_restart
+ gdb_load $binfile
with_test_prefix "gcore corefile" {
test_mte_core_file $gcore_filename $mode
}
}
if {$core_generated} {
- clean_restart ${binfile}
+ clean_restart
+ gdb_load $binfile
with_test_prefix "native corefile" {
test_mte_core_file $core_filename $mode
}
return -1
}
-clean_restart ${binfile}
+clean_restart $testfile
if {![runto_main]} {
return
# and the native one generated by the Linux Kernel. Make sure GDB can read
# both correctly.
if {$gcore_generated} {
- clean_restart ${binfile}
+ clean_restart
+ gdb_load $binfile
gdb_test_no_output "set print repeats 1" \
"adjust repeat count post-crash gcore"
}
if {$core_generated} {
- clean_restart ${binfile}
+ clean_restart
+ gdb_load $binfile
gdb_test_no_output "set print repeats 1" \
"adjust repeat count post-crash native core"
}
# Compilation succeeded so now run it via gdb.
- clean_restart $obj
+ clean_restart
+ gdb_load $obj
gdb_run_cmd
gdb_expect {
-re ".*Illegal instruction.*${gdb_prompt} $" {
# Compilation succeeded so now run it via gdb.
set allow_gcs_tests 0
- clean_restart $obj
+ clean_restart
+ gdb_load $obj
gdb_run_cmd
gdb_expect {
-re ".*$inferior_exited_re normally.*${gdb_prompt} $" {