diff options
author | Tom Tromey <tromey@adacore.com> | 2022-02-22 11:18:01 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-04 12:46:09 -0600 |
commit | c66ed94ae961c19b0d3028489d00a2df5a949aac (patch) | |
tree | 9a61add0242fd5914ed0ba3578bcbcb90fe76dcc /gdb/testsuite/gdb.ada | |
parent | 1e237aba2216f89b9a4b3235ad8d09d1b1b8f039 (diff) | |
download | fsf-binutils-gdb-c66ed94ae961c19b0d3028489d00a2df5a949aac.zip fsf-binutils-gdb-c66ed94ae961c19b0d3028489d00a2df5a949aac.tar.gz fsf-binutils-gdb-c66ed94ae961c19b0d3028489d00a2df5a949aac.tar.bz2 |
Implement completion for Ada attributes
This adds a completer for Ada attributes. Some work in the lexer is
required in order to match end-of-input correctly, as flex does not
have a general-purpose way of doing this. (The approach taken here is
recommended in the flex manual.)
Diffstat (limited to 'gdb/testsuite/gdb.ada')
-rw-r--r-- | gdb/testsuite/gdb.ada/formatted_ref.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/formatted_ref.exp b/gdb/testsuite/gdb.ada/formatted_ref.exp index 882dbf1..19a3265 100644 --- a/gdb/testsuite/gdb.ada/formatted_ref.exp +++ b/gdb/testsuite/gdb.ada/formatted_ref.exp @@ -82,6 +82,11 @@ proc test_p_x_addr { var addr } { } } } + + gdb_test "complete print/x $var'unres" "print/x $var'unrestricted_access" + gdb_test_no_output "complete print/x $var'abcd" + gdb_test "complete print $var'f" "print $var'first" + return 0 } |