This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: MIPS GDB information
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] MIPS GDB information
- From: tim at cygnetinc dot com (Tim Michals)
- Date: Tue, 13 Mar 2001 15:01:51 -0600
- Cc: <ecos-discuss at sourceware dot cygnus dot com>
Jifl,
Here's what I have:
C:\idtCygnet\build>mips-elf-objdump -h boot.exe
boot.exe: file format elf32-bigmips
Sections:
Idx Name Size VMA LMA File off
Algn
0 .rom_vectors 00000500 ffffffffbfc00000 ffffffffbfc00000 00001000
2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .init 00000000 ffffffffbfc00500 ffffffffbfc00500 00015520
2**0
CONTENTS
2 .text 0000b5cc ffffffffbfc06000 ffffffffbfc06000 00002000
2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
3 .fini 00000000 ffffffffbfc115d0 ffffffffbfc115d0 00015520
2**0
CONTENTS
4 .rodata 00000d18 ffffffffbfc115d0 ffffffffbfc115d0 0000d5d0
2**3
CONTENTS, ALLOC, LOAD, DATA
5 .rodata1 00000000 ffffffffbfc122e8 ffffffffbfc122e8 00015520
2**0
CONTENTS
6 .data 00006210 ffffffffa0000200 ffffffffbfc122e8 0000f200
2**3
CONTENTS, ALLOC, LOAD, DATA
7 .data1 00000000 ffffffffa0006410 ffffffffa0006410 00015520
2**0
CONTENTS
8 .eh_frame 00000000 ffffffffa0006410 ffffffffa0006410 00015520
2**0
CONTENTS
9 .gcc_except_table 00000000 ffffffffa0006410 ffffffffa0006410 00015520
2*
*0
CONTENTS
10 .ctors 00000034 ffffffffa0006410 ffffffffbfc184f8 00015410
2**2
CONTENTS, ALLOC, LOAD, DATA
11 .dtors 00000020 ffffffffa0006448 ffffffffbfc18530 00015448
2**2
CONTENTS, ALLOC, LOAD, DATA
12 .devtab 00000080 ffffffffa0006468 ffffffffbfc18550 00015468
2**3
CONTENTS, ALLOC, LOAD, DATA
13 .got 00000000 ffffffffa00064e8 ffffffffa00064e8 00015520
2**0
CONTENTS
14 .dynamic 00000000 ffffffffa00064e8 ffffffffa00064e8 00015520
2**0
CONTENTS
15 .sdata 00000038 ffffffffa00064e8 ffffffffbfc185d0 000154e8
2**2
CONTENTS, ALLOC, LOAD, DATA
16 .lit8 00000000 ffffffffa0006520 ffffffffbfc18608 00015520
2**0
CONTENTS, ALLOC, LOAD, DATA
17 .lit4 00000000 ffffffffa0006520 ffffffffbfc18608 00015520
2**0
CONTENTS, ALLOC, LOAD, DATA
18 .sbss 00000038 ffffffffa0006520 ffffffffa0006520 00000520
2**3
ALLOC
19 .bss 00808ea8 ffffffffa0006558 ffffffffa0006558 00000520
2**4
ALLOC
version mips-elf-gcc --version
2.95.2
a compile example
C:\idtCygnet\build>make
make -wC ../boot
make[1]: Entering directory `/c/idtCygnet/boot'
mips-elf-gcc -EB -mgp32 -mips2 -msoft-float -g -DCYGNET_PRODUCT_ID=3 -DRAMT
EST=
1 -c -o
boot.o -Wall -I//c/idtCygnet/idtCygnet_install/include -ffunction-secti
ons -fdata-sections boot.c
boot.c:360: warning: `watchDog' defined but not used
if I run
C:\idtCygnet\boot>mips-elf-objdump -g boot.o
boot.o: file format elf32-bigmips
mips-elf-objdump: boot.o: no recognized debugging information
Thanks
Tim
-----Original Message-----
From: jlarmour@cambridge.redhat.com
[mailto:jlarmour@cambridge.redhat.com]On Behalf Of Jonathan Larmour
Sent: Tuesday, March 13, 2001 2:16 PM
To: Tim Michals
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] MIPS GDB information
Tim Michals wrote:
>
> I compile with the -g option but I'm not seeing gdb debug information in
my
> exe what I'm I doing wrong?
Do you mean that GDB doesn't report any debug info? What happens when you
do a mipsXXX-elf-objdump -h of an executable? There should be debugging
sections listed there. Exactly which mips target is this, and what version
is gcc?
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine