[U-Boot-Users] kernel global variable debug

kuiliang shi kuiliang_shi at yahoo.com.cn
Thu Jul 7 08:06:34 CEST 2005


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


	

	
		
___________________________________________________________ 
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com/?id=77071





More information about the U-Boot mailing list