Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

Is there a way to step into kernel code with lldb, or otherwise, on the Mac?

$
0
0

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?


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>