Reputation: 21
Is there a way to search LLDB commands similar to the readline library's history-search-backward in bash and GDB?
I want to be able to type some characters, and use up arrow to cycle through all commands that start with those characters.
Upvotes: 1
Views: 891
Reputation: 27148
lldb uses editline rather than readline. Editline has a backward search in command history feature (em-inc-search-prev) that's bound to ^R
by default (though you can change this in your .editrc) It works like emac's ^S
, you type characters to refine the search, and ^R
to go to the previous match. To reverse direction and start searching forward you would use em-inc-search-next, but we haven't bound that to anything.
Upvotes: 2