Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

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?

like image 306
Tony9527 Avatar asked Oct 25 '15 18:10

Tony9527


1 Answers

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.

like image 182
Jim Ingham Avatar answered Oct 02 '22 01:10

Jim Ingham