Mixed Mode C/Asm

13 views
Skip to first unread message

Rajah Chandrasekhar

unread,
Mar 4, 2021, 2:52:01 PM3/4/21
to CodeLLDB Users
Hi all, I love the plugin, I work on low level firmware. I was wondering if there is a mixed mode option or can be considered as a feature enhancement. This will help when stepping through assembly code. Segger's Ozone does something like this in its source code viewer.
(Source Code Viewer). Assembly for each line of C code can be expanded by clicking the plus mark on the left. If open, stepping will automatically result in instruction step. Very useful, esp when navigating optimized code stepping. Is something similar possible, even if not exactly the same, but some way to see corresponding assembly for line of C code will help.

Thanks and keep up the great work!
Rajah




Vadim Chugunov

unread,
Mar 4, 2021, 4:10:09 PM3/4/21
to Rajah Chandrasekhar, CodeLLDB Users
You can use LLDB's "disassemble -m" command to see mixed disassembly.
As for adding this in the UI, it's possible, but would complicate the mapping of instruction addresses to the generated disassembly source, so it'd take some work to generalize that.



--
You received this message because you are subscribed to the Google Groups "CodeLLDB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codelldb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codelldb-users/674d4837-39b8-497d-b1cc-ab24e6aa6a5en%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages