This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Debugging Linux kernel, breakpoint shows incorrect parameter value


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]