Can't debug syscalls

839 views Asked by At

I'm trying to debug kernel with KVM and gdb, it works fine.

But the breakpoints on syscalls doesn't seem to work.

In gdb I set a breakpoint:

(gdb) b sys_uname
Breakpoint 1 at 0xffffffff8106f3b0: file kernel/sys.c, line 1341.

Then I type c to continue,

But when I run uname -a in the debugged system, it doesn't break.

From the output of strace, the uname command does made a uname syscall, so why didn't it stop?

0

There are 0 answers