Debugging Linux kernel, breakpoint shows incorrect parameter value
(too old to reply)
Aaron Lewis
2014-07-25 03:20:55 UTC

I'm debugging linux kernel version 3.12.8 (x64) with gdb, through a
pts console with KVM

%> gdb --version
GNU gdb (GDB) 7.7.1
%> gcc --version
gcc (GCC) 4.9.1

When I set a breakpoint with 'b' command, it works.

But all parameters value are incorrect. I added printk to testify, and
it was indeed incorrect

Anyone know how to fix that?
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Continue reading on narkive: