This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Debugging Linux kernel, breakpoint shows incorrect parameter value
- From: Aaron Lewis <the dot warl0ck dot 1989 at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 25 Jul 2014 11:20:55 +0800
- Subject: Debugging Linux kernel, breakpoint shows incorrect parameter value
- Authentication-results: sourceware.org; auth=none
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