Hello,
I am trying to debug the u-boot with help of gdb + eclipse. Useing the 
phy3250_config.

The problem is that when debugging, the listed source code seems to be out of 
sync.
The debugger pointer in the source code, seems not to point to the correct 
source code.

The assembler windows shows typical this:

<source line is not available>
0x00013f0c <phy3250_get_board_info>:     ldr    r1, [pc, #480]   ; 0x140f4 
<phy3250_get_board_info+488>
0x00013f14 <phy3250_get_board_info+8>:   ldr    r3, [r1, #120]                ; 
0x78
0x00013f1c <phy3250_get_board_info+16>:  orr    r3, r3, #1
0x00013f20 <phy3250_get_board_info+20>:  str    r3, [r1, #120]               ; 
0x78

It does miss the code in "<source line is not available>"

It is the same problem useing only gdb.

So it seems to me that some debug information is missing in the elf file u-boot.

I did look at u-boot.lds and did not find any debug sections.
I do find some debug information on the u-boot elf file in readelf/objdump.

Bellow is an output of some part of the compiling. And there it have -g and -Os 
flags.....

arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common 
-ffixed-r8 -msoft-float  -fno-strict-aliasing  -fno-common -ffixed-r8  
-D__KERNEL__ -DTEXT_BASE=0x00000000 
-I/opt/ltib/ltib-10-1-1a-sv/rpm/BUILD/u-boot-2009.03-rc1/include -fno-builtin 
-ffreestanding -nostdinc -isystem 
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/include
 -pipe  -DCONFIG_ARM -D__ARM__ -march=armv5te -mabi=aapcs-linux 
-mno-thumb-interwork -march=armv5te   -Wall -Wstrict-prototypes 
-fno-stack-protector -c -o lowlevelsys_init.o lowlevelsys_init.c

Is there something parameters to make to add more debug information?

Best Regards
Bjørnar Syverstad

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to