Is there a way to see the code that is being called by a syscall instruction with lldb, or otherwise, on the Mac?
I am trying to understand what goes behind the hood when a "write" syscall is called. I have compiled a simple .c program with gcc -g
:
#include <unistd.h>#include <sys/syscall.h>int main(void) { syscall(SYS_write, 1, "hello, world!\n", 14); return 0;}
lldb does not step into the syscall
instruction even when I use:s -a false
Is there any way?