This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: 3.3 PATCH: Handle mips gas 2.13 -mdebug switch
On Fri, Jul 19, 2002 at 02:40:31PM -0700, Eric Christopher wrote:
>
> > Absolutely. It was only under pressure that I left the support in GAS
> > at all, as I'm sure Eric remembers :) GDB behaves much, much better
> > with DWARF-2 or even elf stabs than it does with the mdebug reader.
>
> Just as a note, here's what I'd _prefer_ to be able to do with all of
> the elf targets (at least).
>
> /* ??? Move all SDB stuff into separate header file. */
> #undef SDB_DEBUGGING_INFO
>
> #define DBX_DEBUGGING_INFO
> #define DWARF2_DEBUGGING_INFO
>
> #undef PREFERRED_DEBUGGING_TYPE
> #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
>
> #undef SUBTARGET_ASM_DEBUGGING_SPEC
> #define SUBTARGET_ASM_DEBUGGING_SPEC "-g0 \
> %{!gstabs*:-no-mdebug}%{gstabs*:-mdebug}"
>
> Which is what I have in my current working sources. I'll raise the call
> for objections right now :)
Eh? No! I went to too much trouble getting MIPS/Linux moved away from
-mdebug. And -no-mdebug doesn't mean terribly much if you aren't
generating stabs data, anyway.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer