[U-Boot-Users] kernel global variable debug

Dear All: My board's cpu is freescale 8247. I debug the linux kernel 2.4.26 with BDI2000 and ppc_6xx-gdb on it. My linux kernel text base on 0xC0000000, so some global variable at 0xCxxxxxxx virtual address. Now the problem is that I can not print the global variable's value, when i use "p" command in gdb: p /x ga. gdb always tell me it's zero, even if I directly print the content in the ga's address. But if I evaluate the ga's value to a local variable in programm, then print it in gdb, it can get me the correct value. It seems the global variable was processed correctly. But Why I can not get the value? where the global variable stored while kernel running?
BRG Alexander

In message 00e001c582a1$387626e0$4500a8c0@baniantealex you wrote:
My board's cpu is freescale 8247. I debug the linux kernel 2.4.26 with
BDI2000 and ppc_6xx-gdb on it.
This has nothing to do with U-Boot and is completely off topic on this list.
Please post on a more appropriate list.
Best regards,
Wolfgang Denk
participants (2)
-
Alex shi
-
Wolfgang Denk