Xcode Debugger - 如何单步执行CPU指令 [英] Xcode Debugger - how to single step at level of CPU instructions
问题描述
我确定这可能与其他一些调试器,但我只使用Xcode
si
是Step Instruction, ni
是下一个指令。对于代码行,它们具有与step和next相同的语义,仅在指令级别。
This is definitely obsessive, but I am fascinated by how cleverly the compiler translates C code into machine instructions. Since I am a little fuzzy on some instructions, it would be helpful if I could watch the operation of a compiled program at the level of individual machine instructions - "below" the level of a C statement (which might generate several CPU instructions). In other words, can I watch the registers/memory change after a single machine instruction?
I'm sure it's possible with some other debuggers, but I am only using Xcode.
si
is "Step Instruction", and ni
is "Next Instruction". They have the same semantics as "step" and "next" do for lines of code, just on the instruction level.
这篇关于Xcode Debugger - 如何单步执行CPU指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!