【发布时间】:2012-04-19 02:22:54
【问题描述】:
来自 strace 手册:
-i Print the instruction pointer at the time of the system call.
我跟踪我的程序:
strace -i prog
结果我得到了很多系统调用。其中之一:
[000da49c] open("./rabbit.o", O_RDONLY) = 3
但是在 prog 这个地址的反汇编指令不会调用任何系统调用(hte 编辑器):
da49c ! mov r7, ip
怎么了?如何找到我的程序的系统调用位置?
附:我的设备架构不支持 GDB 命令 catch syscall。
【问题讨论】: