aboutsummaryrefslogtreecommitdiff
path: root/gdb/tic6x-linux-tdep.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-17 13:29:13 +0100
committerTom de Vries <tdevries@suse.de>2023-03-17 13:29:13 +0100
commitff000c4dbb2b99531c8cda1e0e67e787ce8aef20 (patch)
treebd353f92dd1c39361763cbdd3d0a24cc803bb2af /gdb/tic6x-linux-tdep.c
parent92376883a9a18e478228ae14ac8f3b03398fdefa (diff)
downloadbinutils-ff000c4dbb2b99531c8cda1e0e67e787ce8aef20.zip
binutils-ff000c4dbb2b99531c8cda1e0e67e787ce8aef20.tar.gz
binutils-ff000c4dbb2b99531c8cda1e0e67e787ce8aef20.tar.bz2
[gdb/testsuite] Add escape_for_host
In gdb_compile we have: ... lappend new_options "ldflags=-Wl,-rpath,\\\$ORIGIN" ... and we could improve readability by using {} rather than "": ... lappend new_options {ldflags=-Wl,-rpath,\$ORIGIN} ... But rather than manually adding escapes in a string, add a new proc escape_for_host that care of this for us, allowing us to write: ... lappend new_options [escape_for_host {ldflags=-Wl,-rpath,$ORIGIN}] ... Tested on x86_64-linux.
Diffstat (limited to 'gdb/tic6x-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions