This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: MIPS TX-39 and Debug Information ---
- To: Rosimildo daSilva <rosimildo at hotmail dot com>
- Subject: Re: [ECOS] MIPS TX-39 and Debug Information ---
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Fri, 07 Apr 2000 04:53:20 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <20000407033605.92947.qmail@hotmail.com>
Rosimildo daSilva wrote:
>
> Hi,
>
> I am trying to check the TX-39 toolset. I have built everything.
> Compiled eCOS 1.3.1 and built the "hello" example. Now I am
> trying to debug it, and GDB reports that there is no debug info.
>
> Using objdump, I see no .mdebug section, or something like that.
> I can see by the size of hello.exe that there is no debug info
> in it.
[snip]
The tx39 tools output dwarf-2 debugging information by default, not stabs
(which would be when the mdebug section is used). There should be no
.mdebug section - in fact we explicitly remove it for the tx39 because we
found sometimes GDB got confused when both stabs and dwarf-2 debug
information was in the same executable.
Which gcc and gdb versions are you using? And did you compile hello.exe
(and your app) with -g and not -ggdb or -gstabs or anything? If you just
used the makefile, then that would mean just -g.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault