Tony9527
Tony9527

Reputation: 71

How to switch between source code debug mode and disassembly debug mode in LLDB

How to switch between source code debug mode and disassembly debug mode in LLDB,like "Xcode->Debug->Debug Workflow->Always show disassembly" menu function?

Upvotes: 7

Views: 8501

Answers (1)

Jim Ingham
Jim Ingham

Reputation: 27118

These four settings control how lldb displays source/assembly when you stop:

  stop-disassembly-count   -- The number of disassembly lines to show when displaying a stopped context.
  stop-disassembly-display -- Control when to display disassembly when displaying a stopped context.
  stop-line-count-after    -- The number of sources lines to display that come after the current source line when displaying a stopped context.
  stop-line-count-before   -- The number of sources lines to display that come before the current source line when displaying a stopped context.

So for instance, at the LLDB prompt:

set set stop-disassembly-display always
set set stop-line-count-before 0
set set stop-line-count-after 0

Will only display assembly.

Upvotes: 13

Related Questions