diff options
author | Tom de Vries <tdevries@suse.de> | 2025-09-27 01:54:18 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-09-27 01:54:18 +0200 |
commit | 307d4c216e956a9f2b6a3354631e17d26bdf5475 (patch) | |
tree | cedc6eba9671c9e00bc4b91c098229577b76ad08 /gdb/python/python.c | |
parent | 71725dd5d82266d9214a5d359617529bd0b826d2 (diff) | |
download | binutils-307d4c216e956a9f2b6a3354631e17d26bdf5475.zip binutils-307d4c216e956a9f2b6a3354631e17d26bdf5475.tar.gz binutils-307d4c216e956a9f2b6a3354631e17d26bdf5475.tar.bz2 |
[gdb/testsuite] Drop tclsh dependency
The test-case gdb.tui/tuiterm-2.exp uses a tcl script gdb.tcl that uses tclsh
as its interpreter:
...
#!/usr/bin/env tclsh
...
I used tclsh because I assumed it was an existing dependency of
dejagnu/expect, but apparently [1] that's not the case.
IWBN to use some existing dependency instead.
Using expect instead of tclsh also works on my system, but looking in
/usr/bin/runtest I realized that someone might have a dejagnu setup with
a custom expect indicated by setting an env var EXPECT. So to find expect
we'd have to mimic whatever runtest is doing to find expect, or do:
...
$ runtest --version -v | grep "Expect binary"
...
using the appropriate runtest.
That sounds non-trivial and fragile, so simply use a shell script with /bin/sh
interpreter instead.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
[1] https://sourceware.org/pipermail/gdb-patches/2025-September/220736.html
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions