Difference between revisions of "LLDB Commands"

From Coder Merlin
Line 9: Line 9:
| {{Command|process}} {{Command|launch}} {{Command|--}} {{CommandPlaceholder|arguments}}
| {{Command|process}} {{Command|launch}} {{Command|--}} {{CommandPlaceholder|arguments}}
| Launch the process with the specified arguments
| Launch the process with the specified arguments
|}
== Breakpoint ==
{| class='wikitable'
! Key Sequence
! Purpose
|-
| {{Command|breakpoint}} {{Command|set}} {{Command|--name}} {{CommandPlaceholder|function_name}}
| Set a breakpoint on the function named ''function_name''
|-
| {{Command|breakpoint}} {{Command|set}} {{Command|--file}} {{CommandPlaceholder|file_name}} {{Command|--line}} {{CommandPlaceholder|line_number}}
| Set a breakpoint in the file named ''file_name'' at line number ''line_number''
|}
|}



Revision as of 12:43, 23 September 2020

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Execution[edit]

Key Sequence Purpose
 process   launch   --stop-at-entry  Launch the process and then immediately halt
 process   launch   --   arguments  Launch the process with the specified arguments

Breakpoint[edit]

Key Sequence Purpose
 breakpoint   set   --name   function_name  Set a breakpoint on the function named function_name
 breakpoint   set   --file   file_name   --line   line_number  Set a breakpoint in the file named file_name at line number line_number

Disassemble Frame[edit]

disassemble --frame –mixed

Memory Read[edit]

memory read --size 4 --format x --count 4 0x00007fffffffdb64

Register Read[edit]

register read

Single-Step Assembly[edit]

stepi

References[edit]