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.
Print a CYG_ADDRESS type value in GDB
Re: Print a CYG_ADDRESS type value in GDB
-O<level> just disables/enables some optimizations and doesn't add interesting debug information.
To get such additional information, you should learn about flags such as -g[level], -ggdb[level].
You can find more details in gcc's man page.
To get such additional information, you should learn about flags such as -g[level], -ggdb[level].
You can find more details in gcc's man page.