Skip to content

Readline

Readline interface for the Pwndbg LLDB REPL.

Mostly concerns itself with argument completion.

PROMPT = message.prompt('pwndbg-lldb> ') module-attribute

complete_descrs = lldb.SBStringList() module-attribute

complete_values = lldb.SBStringList() module-attribute

complete(dbg, text, state)

Runs the tab autocompletion function for readline based on the values returned by SBCommandInterpreter.HandleCompletion.

disable_readline()

Disables the readline functionality.

display_completions(substitutions, matches, longest_match_len)

Display the completions found by complete in the style of LLDB.

enable_readline(dbg)

Enables the readline functionality.