Print a CYG_ADDRESS type value in GDB
Posted: Sun Dec 29, 2013 11:34 am
Hi,
I use gdb to trace the booting process of eCos. Now, I want to print a value call base, which is CYG_ADDRESS data type, in /opt/ecos/ecos/packages/hal/cortexm/arch/current/src/hal_misc.c, line 278. Although I add the -00 flag. GDB is stilll show the message $1 = <optimized out> to me.
Could anybody tell me what the correct way is?
Thanks.
I use gdb to trace the booting process of eCos. Now, I want to print a value call base, which is CYG_ADDRESS data type, in /opt/ecos/ecos/packages/hal/cortexm/arch/current/src/hal_misc.c, line 278. Although I add the -00 flag. GDB is stilll show the message $1 = <optimized out> to me.
Could anybody tell me what the correct way is?
Thanks.