This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: mips-elf executables lack debug information


>-----Original Message-----
>From: David Phillips [mailto:daphillips@efficient.com]
>Sent: 30 November 2001 20:48

>So it looks like all -g* options produce .mdebug debugging information.
>Unfortunately, this doesn't help me because my debugger can only read
>stabs, DWARF 1.x, DWARF 2.x, ECOFF, COFF, and IEEE-695 formats. Is there a
>configuration option that will cause the compiler to generate one of these
>other formats? 

  You may need to customize your target macro file, which will be in
config/mips/<somethinglikemips-elf>.h - grep through the config scripts for
mips-elf or mips-*-elf to find out which header is actually used.  Then take
a look at Using and porting GCC: Target Macros : Debugging info.


Macros for SDB and DWARF Output
-------------------------------

   Here are macros for SDB and DWARF output.

`SDB_DEBUGGING_INFO'
     Define this macro if GNU CC should produce COFF-style debugging
     output for SDB in response to the `-g' option.

`DWARF_DEBUGGING_INFO'
     Define this macro if GNU CC should produce dwarf format debugging
     output in response to the `-g' option.

`DWARF2_DEBUGGING_INFO'
     Define this macro if GNU CC should produce dwarf version 2 format
     debugging output in response to the `-g' option.

  It might be as simple as just adding the relevant enabling macro, or it 
might not - I'm afraid you'll just have to try it and see...


         DaveK
-- 
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.

www.mimesweeper.com
**********************************************************************

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


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