aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-11-13 08:49:53 -0700
committerTom Tromey <tromey@adacore.com>2024-11-21 14:08:18 -0700
commit29e316d8b15f1f1874bb58d8cd8346629f4edcc4 (patch)
treed7176c1d26d62c6c68676dc009a28052c375d2b0 /gdb/testsuite
parentgdb/build-id: protect against weirdly short build-ids (diff)
downloadbinutils-gdb-29e316d8b15f1f1874bb58d8cd8346629f4edcc4.tar.gz
binutils-gdb-29e316d8b15f1f1874bb58d8cd8346629f4edcc4.tar.bz2
binutils-gdb-29e316d8b15f1f1874bb58d8cd8346629f4edcc4.zip
Don't put JIT_READER_DIR into help text
The 80-column-help-string self-test can fail if gdb's install directory is too long, because the help for "jit-reader-load" includes JIT_READER_DIR. This help text is actually somewhat misleading, though. JIT_READER_DIR is not actually used directly -- instead the relocated variant is used. This patch adds a new "show jit-reader-directory" command and changes the help text to refer to this instead. I considered adding a "set" command as well, but since absolute paths are acceptable here, and since this is a very niche command anyway, I figured there was no need to bother. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32357 Reviewed-By: Kévin Le Gouguec <legouguec@adacore.com> Reviewed-By: Eli Zaretskii <eliz@gnu.org> Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/jit-reader.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/jit-reader.exp b/gdb/testsuite/gdb.base/jit-reader.exp
index 62f6af29ac1..2a96207346c 100644
--- a/gdb/testsuite/gdb.base/jit-reader.exp
+++ b/gdb/testsuite/gdb.base/jit-reader.exp
@@ -109,6 +109,10 @@ proc jit_reader_test {} {
gdb_test_no_output "set debug jit 1"
}
+ # Just test that this is installed and prints something.
+ gdb_test "show jit-reader-directory" \
+ "JIT reader directory is .*\\."
+
gdb_test_no_output "jit-reader-load ${jit_reader_bin}" "jit-reader-load"
gdb_run_cmd
gdb_test "" "Program received signal SIGTRAP, .*" "expect SIGTRAP"