How can I find the places of system calls of my program?
- by Lucky Man
From strace manual:
-i Print the instruction pointer at the time of the system call.
I straced my programm:
strace -i prog
As a result I got a lot of system calls. One of them:
[000da49c] open("./rabbit.o", O_RDONLY) = 3
But disassembled instruction at this address of prog doesn't call any syscall (hte editor):
da49c ! mov r7, ip
What is wrong? How can I find the places of system calls of my program?
P.S. Architecture of my device doesn't support GDB-command catch syscall.