Skip to content

Settings for command context

enable

Name context.enable

Type bool

DefaultValue: True

Description Enable/disable printing the context when breaking

show_source_code_variable_values

Name context.show_source_code_variable_values

Type bool

DefaultValue: True

Description Show extra PC context info in the source code

show_full_source_file_name_max_len

Name context.show_full_source_file_name_max_len

Type int

DefaultValue: 30

Description Show full source path name, if less than this value

show_basename_source_file_name_max_len

Name context.show_basename_source_file_name_max_len

Type int

DefaultValue: 20

Description Show the source basename in full, if less than this value

show_prefix_source_path_name_len

Name context.show_prefix_source_path_name_len

Type int

DefaultValue: 10

Description When truncating source path, show this many path prefix characters

show_stack_raw

Name context.show_stack_raw

Type bool

DefaultValue: False

Description Show the stack pane as raw hexdump (no dereference)

show_registers_raw

Name context.show_registers_raw

Type bool

DefaultValue: False

Description Show the registers pane with raw values (no dereference)

show_opcodes_size

Name context.show_opcodes_size

Type int

DefaultValue: 0

Description Number of bytes of opcodes to display next to the disassembly

peek_calls

Name context.peek_calls

Type bool

DefaultValue: True

Description Peek into calls

peek_ret

Name context.peek_ret

Type bool

DefaultValue: True

Description Peek at return address

nb_lines_stack

Name context.nb_lines_stack

Type int

DefaultValue: 8

Description Number of line in the stack pane

grow_stack_down

Name context.grow_stack_down

Type bool

DefaultValue: False

Description Order of stack downward starts at largest down to stack pointer

nb_lines_backtrace

Name context.nb_lines_backtrace

Type int

DefaultValue: 10

Description Number of line in the backtrace pane

nb_lines_backtrace_before

Name context.nb_lines_backtrace_before

Type int

DefaultValue: 2

Description Number of line in the backtrace pane before selected frame

nb_lines_threads

Name context.nb_lines_threads

Type int

DefaultValue: -1

Description Number of line in the threads pane

nb_lines_code

Name context.nb_lines_code

Type int

DefaultValue: 6

Description Number of instruction after $pc

nb_lines_code_prev

Name context.nb_lines_code_prev

Type int

DefaultValue: 3

Description Number of instruction before $pc

ignore_registers

Name context.ignore_registers

Type str

DefaultValue: ``

Description Space-separated list of registers not to display (e.g. '$cs $ds $gs')

clear_screen

Name context.clear_screen

Type bool

DefaultValue: True

Description Clear the screen before printing the context

layout

Name context.layout

Type str

DefaultValue: legend regs stack code args source memory threads trace extra

Description Change the order/presence of the context sections

redirect

Name context.redirect

Type str

DefaultValue: ``

Description Redirect the context information to another TTY

libc_args

Name context.libc_args

Type bool

DefaultValue: False

Description [DEPRECATED - Unused] Show libc function call args description

libc_args_path

Name context.libc_args_path

Type str

DefaultValue: ``

Description [DEPRECATED - Unused] Path to libc function call args json files, provided via gef-extras