Debugging Linux kernel, breakpoint shows incorrect parameter value

Aaron Lewis <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAJZVxRmKbbUQS_Orn2aqoTuovX3A1DRBiPbEuvGAfJV7gkd_jg@mail.gmail.com>
Hi,

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.