QEMU 有没有办法追踪客户机指令流的同时,观察寄存器值的变化? #14
Answered
by
zevorn
zevorn
asked this question in
QEMU | Q&A
QEMU 有没有办法追踪客户机指令流的同时,观察寄存器值的变化? |
Answered by
zevorn
Sep 24, 2025
Replies: 3 comments 3 replies
直接gdbmularch直接连接加载符号 , 就是连接gdb stub的意思,qemu 里-s就是启动一个gdb stub |
0 replies
|
或者 -d in_asm 然后对着汇编反查代码 (调裸机这种事儿还是得老师傅传授经验 我也是老师傅教的😇 |
2 replies
我一般是开着execlog插件,除了看到汇编指令,还能看到特定寄存器值的变化[坏笑] -plugin libexeclog.so,reg=sp,reg=x0这样子,可以同时追踪多个寄存器。还有instruction/address filter可以分别过滤指令和地址。 |
1 reply
Answer selected by
zevorn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我一般是开着execlog插件,除了看到汇编指令,还能看到特定寄存器值的变化[坏笑]
-plugin libexeclog.so,reg=sp,reg=x0这样子,可以同时追踪多个寄存器。还有instruction/address filter可以分别过滤指令和地址。