stabs or ecoff for Linux/mips

Ian Lance Taylor ian@zembu.com
Thu Jun 7 10:05:00 GMT 2001


"H . J . Lu" <hjl@lucon.org> writes:

> What is the better debug format for Linux/mips in the terms of gdb
> and binutils, stabs or ecoff? I know the future is dwarf2. But I need
> something stable now. Since Linux/x86 uses stabs, I lean toward to
> stabs. Any comments?

Stabs is better.  ECOFF can not really support C++.  Note that when
using ECOFF, most GNU tools actually use stabs smuggled in ECOFF (see
ECOFF_IS_STAB, et. al., in include/coff/ecoff.h).  Since the SGI MIPS
ELF toolchain uses ECOFF smuggled in ELF, the GNU tools tend to use
use stabs smuggled in ECOFF smuggled in ELF.  For GNU/Linux/MIPS, it's
probably simpler to use stabs in ELF.

Ian



More information about the Binutils mailing list