mips-elf executables lack debug information

David Phillips daphillips@efficient.com
Sun Oct 28 03:45:00 GMT 2001

-----Original Message-----
From: David Phillips 
Sent: Tuesday, December 04, 2001 6:43 PM
To: 'David Korn'
Subject: RE: mips-elf executables lack debug information

Getting the cross-compiler to generate DWARF2 debug output turned out to be
as easy as David Korn suggested.  I had to do these things:

1. I added #DEFINE DWARF2_DEBUGGING_INFO to gcc-3.0.2/gcc/config/mips/mips.h
same file.
3. I configured gcc with the option --with-dwarf2

The third step was necessary to cause -g to generate dwarf2 output by
default. Otherwise gcc has to be invoked with -gdwarf-2 in order to produce
dwarf2 debugging information.

Thanks to all responders for your help.


-----Original Message-----
From: David Korn [mailto:dkorn@pixelpower.com]
Sent: Monday, December 03, 2001 6:35 AM
To: David Korn; 'David Phillips'; 'crossgcc@sources.redhat.com'
Subject: RE: mips-elf executables lack debug information

>-----Original Message-----
>From: David Korn 
>Sent: 03 December 2001 12:31

>  You may need to customize your target macro file, which will be in
>config/mips/<somethinglikemips-elf>.h - 

  Oops.  I should have said gcc/config/mips/.... , as there is also a top-
level 'config' directory in parallel to the gcc subdirectory, which isn't
one I mean.

Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

More information about the crossgcc mailing list