public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: tim@cygnetinc.com (Tim Michals)
To: "'Jonathan Larmour'" <jlarmour@redhat.com>
Cc: <ecos-discuss@sourceware.cygnus.com>
Subject: RE: [ECOS] MIPS GDB information
Date: Tue, 13 Mar 2001 13:02:00 -0000	[thread overview]
Message-ID: <001d01c0ac00$d3dc46e0$d301010a@cygnetinc.com> (raw)
In-Reply-To: <3AAE8001.88946ED4@redhat.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

  reply	other threads:[~2001-03-13 13:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-07 14:20 Tim Michals
2001-03-13 12:16 ` Jonathan Larmour
2001-03-13 13:02   ` Tim Michals [this message]
2001-03-13 13:12     ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001d01c0ac00$d3dc46e0$d301010a@cygnetinc.com' \
    --to=tim@cygnetinc.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jlarmour@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).