diff options
author | Pedro Alves <palves@redhat.com> | 2017-07-17 20:24:41 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-07-17 20:24:41 +0100 |
commit | a245927022bc4351fafd9e6275e217021ec93e08 (patch) | |
tree | 0446dc2f9ce7476bc3ef3d8649c419b86b20378e /gdb/ChangeLog | |
parent | c6756f62e04846d68c24ee922ddb0377d4bd17f2 (diff) | |
download | gdb-a245927022bc4351fafd9e6275e217021ec93e08.zip gdb-a245927022bc4351fafd9e6275e217021ec93e08.tar.gz gdb-a245927022bc4351fafd9e6275e217021ec93e08.tar.bz2 |
Explicit locations -label completer
We're missing a completer for
(gdb) break -function func -label [TAB]
This patch adds one. Tests will be added later in the series.
gdb/ChangeLog:
2017-07-17 Pedro Alves <palves@redhat.com>
* completer.c (collect_explicit_location_matches): Handle
MATCH_LABEL.
(convert_explicit_location_to_linespec): New, factored out from
...
(convert_explicit_location_to_sals): ... this.
(complete_label): New.
(linespec_complete_label, find_label_symbols_in_block): New.
(find_label_symbols): Add completion_mode parameter and adjust to
call find_label_symbols_in_block.
* linespec.h (linespec_complete_label): Declare.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b341eb1..acf0b51 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,18 @@ 2017-07-17 Pedro Alves <palves@redhat.com> + * completer.c (collect_explicit_location_matches): Handle + MATCH_LABEL. + (convert_explicit_location_to_linespec): New, factored out from + ... + (convert_explicit_location_to_sals): ... this. + (complete_label): New. + (linespec_complete_label, find_label_symbols_in_block): New. + (find_label_symbols): Add completion_mode parameter and adjust to + call find_label_symbols_in_block. + * linespec.h (linespec_complete_label): Declare. + +2017-07-17 Pedro Alves <palves@redhat.com> + * ada-lang.c (ada_collect_symbol_completion_matches): Add complete_symbol_mode parameter. * cli/cli-cmds.c (complete_command): Get the completion result out |