diff options
author | Tom de Vries <tdevries@suse.de> | 2023-03-21 11:25:12 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-03-21 11:25:12 +0100 |
commit | 33ddd9fc4f36a2627ce55e9920df224556a8beef (patch) | |
tree | 8e09fa8d7ed8bdaca9dce43ae03403ae7144f86f /gdb/testsuite/lib | |
parent | 7c872c903c772ca6b269e5dbe2880dd084240ae6 (diff) | |
download | binutils-33ddd9fc4f36a2627ce55e9920df224556a8beef.zip binutils-33ddd9fc4f36a2627ce55e9920df224556a8beef.tar.gz binutils-33ddd9fc4f36a2627ce55e9920df224556a8beef.tar.bz2 |
[gdb/testsuite] Fix gdb.xml/tdesc-reload.exp for remote host
Fix test-case gdb.xml/tdesc-reload.exp for remote host by using appropriate
filenames.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 111a158..0a0ae69 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -6364,6 +6364,16 @@ proc standard_output_file {basename} { return [file join $dir $basename] } +# Turn BASENAME into a file name on host. + +proc host_standard_output_file { basename } { + if { [is_remote host] } { + return $basename + } else { + return [standard_output_file $basename] + } +} + # Turn BASENAME into a full file name in the standard output directory. If # GDB has been launched more than once then append the count, starting with # a ".1" postfix. |