[PATCH] Add autocompletion for convenience vars in print and set

Daniel Gutson daniel.gutson@tallertechnologies.com
Tue May 20 15:51:00 GMT 2014


Hi,

  this small patch adds autocompletion for convenience variables
for 'print' and 'set' commands. I guess other commands using the
same completers will be benefited as well.

I could not find any testsuite where to add tests for this; if there are,
please let me know.


2014-05-20  Daniel Gutson  <daniel.gutson@tallertechnologies.com>

gdb/
        * c-exp.y (exp): Do not create an internal var when completing.
        * completer.c (expression_completer): Call complete_internalvar.
        * symtab.c (make_symbol_completion_list): Call complete_internalvar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: completer.patch
Type: text/x-patch
Size: 2241 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140520/70b55b45/attachment.bin>


More information about the Gdb-patches mailing list