This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Re: MIPS TX-39 and Debug Information ---


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

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