[gdb/testsuite] Remove path names from error messages in gdb_file_cmd
authorTom de Vries <tdevries@suse.de>
Thu, 4 Jun 2020 15:37:53 +0000 (17:37 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 4 Jun 2020 15:37:53 +0000 (17:37 +0200)
commit1c07a73f66382eb0c95132aaf9690621fdce1e78
tree1ec2a5a0fb863549c5ce2877aefbae46e77e9ca0
parent7d8b91fda9fed423b91d4d43b19dd068457fe555
[gdb/testsuite] Remove path names from error messages in gdb_file_cmd

In gdb_file_cmd, perror is called with error message strings using $arg and
$GDB, both of which contain path names, which makes comparison of gdb.sum
files more difficult.

Fix this by using:
- [file tail $arg] instead of $arg
- GDB instead of $GDB.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-06-04  Tom de Vries  <tdevries@suse.de>

* lib/gdb.exp (gdb_file_cmd): Avoid path names in error messages.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp
This page took 0.023512 seconds and 4 git commands to generate.