This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Specifying debug format in target libraries



  In message <19990212193116.24420.qmail@hotmail.com>you write:
  > What is the proper way to specify the debugging format for target 
  > libraries (such as newlib) when building a cross compiler?  Do I have to 
  > go in and set PREFERRED_DEBUGGING_TYPE?  If so, what file should this be 
  > in?  For the m68k, I only see it set in one file (something called 
  > dpx2cdbx.h); should I just add it to m68kelf.h (since I'm using elf 
  > object format)?  Or maybe t-m68kelf?
  > 
  > In particular, I'm looking for a way to do it so I don't have to rebuild 
  > the compiler.  It's set up to do DWARF if I give it -gdwarf, but I can't 
  > figure out how to force -gdwarf into the newlib/libgloss Makefiles, 
  > other than brute-force editing.  Can I replace -g with -gdwarf, and just 
  > do a 'make install' from the newlib & libgloss directories?
If you just want to get those libraries built with a specific option and
do not want to change the default action of "-g", then I think what you
to do is look at NEWLIB_CFLAGS, and CFLAGS_FOR_TARGET.  ie, something like
this:

make CFLAGS_FOR_TARGET="-gdwarf" <blah blah blah>

If you want to change the debug code emitted for "-g", then you would need
to redefine PREFERRED_DEBUGGING_TYPE in your tm.h file. 

jeff


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