This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Newbie question, thanks!


I am using the GDB to make a cross complile, target is
ARM. 

But the GDB tell me there isn't the symbol file
attached with my image.

(gdb) sym blob-start-elf32
Reading symbols from
/opt/tmp/blob-new/blob-2.0.5-pre2/src/blob/blob-start-elf32...(no
debugging symbols found)...done.
(gdb) shell arm-linux-objdump -x blob-start-elf32
                                                      
                         
blob-start-elf32:     file format elf32-littlearm
blob-start-elf32
architecture: arm, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00000000
                                                      
                         
???:
    LOAD off    0x00008000 vaddr 0x00000000 paddr
0x00000000 align 2**15
         filesz 0x00000350 memsz 0x00000350 flags rwx
???? = 0: [APCS-32]
                                                      
                         
Sections:
Idx Name          Size      VMA       LMA       File
off  Algn
  0 .text         00000350  00000000  00000000 
00008000  2**0
                  CONTENTS, ALLOC, LOAD, READONLY,
CODE
  1 .glue_7       00000000  00000350  00000350 
00008350  2**2
                  CONTENTS, ALLOC, LOAD, READONLY,
CODE
  2 .glue_7t      00000000  00000350  00000350 
00008350  2**2
                  CONTENTS, ALLOC, LOAD, READONLY,
CODE
  3 .data         00000000  00000350  00000350 
00008350  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  4 .bss          00000000  00000350  00000350 
00008350  2**0
                  ALLOC
  5 .comment      000000de  00000000  00000000 
00008350  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
00000000 l    d  .text  00000000
00000350 l    d  .glue_7        00000000
00000350 l    d  .glue_7t       00000000
00000350 l    d  .data  00000000
00000350 l    d  .bss   00000000
00000000 l    d  .comment       00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000000 l    df *ABS*  00000000 start.S
00000000 l    df *ABS*  00000000 start.S
00000000 l    df *ABS*  00000000 start.S
00000034 l       .text  00000000 reset
00000108 l       .text  00000000 undefined_instruction
00000110 l       .text  00000000 software_interrupt
00000118 l       .text  00000000 prefetch_abort
00000120 l       .text  00000000 data_abort
00000128 l       .text  00000000 not_used
00000130 l       .text  00000000 irq
00000138 l       .text  00000000 fiq
00000020 l       .text  00000000 IC_BASE
00000024 l       .text  00000000 PWR_BASE
00000028 l       .text  00000000 RST_BASE
0000002c l       .text  00000000 BLOB_START
00000030 l       .text  00000000 cpuspeed
0000008c l       .text  00000000 normal_boot
00000098 l       .text  00000000 mem_test_loop
000000e0 l       .text  00000000 badram
000000b4 l       .text  00000000 relocate
000000c4 l       .text  00000000 copy_loop
000000e8 l       .text  00000000 endless_blink
000000f8 l       .text  00000000 wait
000000fc l       .text  00000000 wait0
00000000 l    df *ABS*  00000000 ledasm.S
00000000 l    df *ABS*  00000000 ledasm.S
00000000 l    df *ABS*  00000000 ledasm.S
00000140 l       .text  00000000 LED
00000144 l       .text  00000000 GPIO_BASE
0000017c l       .text  00000000 wait_loop
00000180 l       .text  00000000 wait_loop1
0000018c l       .text  00000000 blinky
000001b4 l       .text  00000000 blink0
00000000 l    df *ABS*  00000000 testmem.S
00000000 l    df *ABS*  00000000 testmem.S
000001fc l       .text  00000000 bad
00000000 l    df *ABS*  00000000 memsetup-sa1110.S
00000000 l    df *ABS*  00000000 memsetup-sa1110.S
00000000 l    df *ABS*  00000000 memsetup-sa1110.S
00000000 l    df *ABS*  00000000 memsetup-sa1110.S
0000020c l       .text  00000000 MEM_REG_BASE
00000210 l       .text  00000000 MEM_START
00000214 l       .text  00000000 MEMORY_CONFIG
00000148 g       .text  00000000 ledinit
000001a4 g       .text  00000000 led_blink
000001c4 g       .text  00000000 testram
0000015c g       .text  00000000 led_on
00000248 g       .text  00000000 memsetup
00000000 g       .text  00000000 _start
0000016c g       .text  00000000 led_off
 
 
(gdb) info symbol 0x000016c
led_off in section .text
(gdb) info symbol 0x00000000
_start in section .text
(gdb) list
No symbol table is loaded.  Use the "file" command.
(gdb)

Since the symbol table can't be located by the GDB, it
couldn't let me going further when an symbol address
met in the code. 

Looks like the elf actullay have a symbol table
inside, but why i got such a result?

I tried this with gdb-5.2/5.3/6.2.1/6.0, each one give
me the same result. Also i tried it with elf-gdb.

The gdb is a cross compiled arm-linux, which is
running on my Redhat ES3 i686.

Any big brother give me a hand, really appreciate!!!!


Best Regards
 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]