Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试使用系统调用“ptrace”(使用 PTRACE_SINGLESTEP 宏)来跟踪简单应用程序的执行。
在记录程序的执行时,我想跳过阅读中无用的部分,只关注我的应用程序的“主要”部分。因为每当我启动我的跟踪器时,我都会得到大约 10 万个执行步骤。
亲切
您可能希望在main入口处插入断点,等待 aSIGTRAP到达,恢复断点下的指令,然后从那里单步执行。
main
SIGTRAP