diff options
author | Tom Tromey <tom@tromey.com> | 2015-03-01 20:33:00 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-07-13 12:57:20 -0600 |
commit | 6571a3815623d907b7a3f560e909edd8c76a9e1c (patch) | |
tree | e4391787d78a62fe25cf01f40f6342948c459ab6 /gdb/testsuite | |
parent | 92281a5b06dd83a2a7d96ab8d83ae40b4e519acd (diff) | |
download | gdb-6571a3815623d907b7a3f560e909edd8c76a9e1c.zip gdb-6571a3815623d907b7a3f560e909edd8c76a9e1c.tar.gz gdb-6571a3815623d907b7a3f560e909edd8c76a9e1c.tar.bz2 |
Fix PR cli/18053
PR cli/18053 concerns a couple of minor bugs in the JIT debuginfo
support. First, jit-reader-load should use filename completion and
support tilde expansion. Second, the help for jit-reader-unload is
incorrect. While working on this I also realized that
jit-reader-unload should use the no-op completer, so I've included
that as well.
Built and regtested on x86-64 Fedora 23. A completer test for
jit-reader-load is included, but not a tilde-expansion test, as I
couldn't think of a reliable way to test that.
2016-07-13 Tom Tromey <tom@tromey.com>
PR cli/18053:
* jit.c (jit_reader_load_command): Use tilde_expand.
(_initialize_jit): Fix help for jit-reader-unload. Set completer
for new commands.
2016-07-13 Tom Tromey <tom@tromey.com>
PR cli/18053:
* gdb.base/jit-so.exp (one_jit_test): Add jit-reader-load
completion test.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-so.exp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7ab1228..b404db4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-07-13 Tom Tromey <tom@tromey.com> + + PR cli/18053: + * gdb.base/jit-so.exp (one_jit_test): Add jit-reader-load + completion test. + 2016-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.dwarf2/atomic-type.exp: Use function_range for low_pc and high_pc. diff --git a/gdb/testsuite/gdb.base/jit-so.exp b/gdb/testsuite/gdb.base/jit-so.exp index 0db3259..9fadd86 100644 --- a/gdb/testsuite/gdb.base/jit-so.exp +++ b/gdb/testsuite/gdb.base/jit-so.exp @@ -117,3 +117,10 @@ proc one_jit_test {count match_str} { one_jit_test 1 "${hex} jit_function_0000" one_jit_test 2 "${hex} jit_function_0000\[\r\n\]+${hex} jit_function_0001" + +# We don't intend to load the .so as a JIT debuginfo reader, but we +# need some handy file name for a completion test. +gdb_test \ + "complete jit-reader-load [standard_output_file ${solib_testfile}.s]" \ + "jit-reader-load $solib_binfile" \ + "test jit-reader-load filename completion" |