Skip to content

readline ¤

Readline interface for the Pwndbg LLDB REPL.

Mostly concerns itself with argument completion.

Functions:

Attributes:

P module-attribute ¤

P = ParamSpec('P')

T module-attribute ¤

T = TypeVar('T')

PROMPT module-attribute ¤

PROMPT = readline_escape(prompt, 'pwndbg-lldb> ')

HISTORY_FILE module-attribute ¤

HISTORY_FILE = expanduser('~/.pwndbg_history')

complete_values module-attribute ¤

complete_values = SBStringList()

complete_descrs module-attribute ¤

complete_descrs = SBStringList()

complete ¤

complete(dbg: LLDB, text: str, state: int) -> str | None

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

display_completions ¤

display_completions(substitutions, matches, longest_match_len)

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

wrap_with_history ¤

wrap_with_history(function: Callable[P, T]) -> Callable[P, T]

ctx_with_history ¤

ctx_with_history()

enable_readline ¤

enable_readline(dbg: LLDB)

Enables the readline functionality.

disable_readline ¤

disable_readline()

Disables the readline functionality.