c - GDB prints incorrect parameter value in kernel -


I'm debugging the Linux kernel with GDB, the breakpoint works fine.

But when the GDB breaks, the parameter values ​​passed incorrectly. Breakpoint 4 on XX.c, XXX (A = 0xb008, b = 1, c = 1, d = 0x0, e = 0): YY

Yes, all these values ​​are wrong I Some of the colonels added some printers to the function, and confirmed that it was wrong. (This was not a data format problem)

I have tested with GCC-4.6 and GCC-4.9 with the same result. I modified the CFLAGS_KERNEL have not done it.

Probably a GDB problem? I am using version 7.7.1

, I have also tried with several kernel source codes, 3.12.8, 3.4.0 2.6.32 etc. No change.

There is not enough information here to know what the problem is, though it may be a GDB problem From the details I would say that this is a debug info problem. But there is no easy way to tell, the information about the debug, the assembly emitted by the compiler, and the GDB source code, where the bug is contained, must plunge to decide.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -