ghostlygray
ghostlygray

Reputation: 21

LLDB command history search by starting characters similar to GDB readline?

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

Answers (1)

Jim Ingham
Jim Ingham

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

Related Questions