Page MenuHomePhabricator

Expression autocompletion with variables and symbols
AbandonedPublic

Authored by acoomans on Aug 15 2018, 1:20 PM.

Details

Reviewers
lldb-commits
Summary

This adds autocompletion for the expression (and thus print and p) commands. Variables and symbols are suggested.

For example: let's assume we have a struct called my_struct. We break, then run:

(lldb) p my_ [TAB]

will autocomplete to:

(lldb) p my_struct

Now let's assume we run:

(lldb) p m [TAB]

we'll get suggestions from all corresponding symbols like this:

Available completions:
	mach_absolute_time
	mach_approximate_time
	mach_boottime_usec
	mach_continuous_approximate_time
	mach_continuous_time
	mach_error
[...]
More (Y/n/a):

Diff Detail

Repository
rLLDB LLDB

Event Timeline

acoomans created this revision.Aug 15 2018, 1:20 PM

I think D48465 is doing the same thing (and more).

acoomans abandoned this revision.Aug 16 2018, 8:56 AM

@teemperor Nice. Looks like you're way ahead of me. I'll abandon this. Let me know if you want help with your code!

@acoomans D48465 has landed, so feel free to file bugs for any completions that are not provided by this. Thanks!