This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: stabs or ecoff for Linux/mips
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: stabs or ecoff for Linux/mips
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 07 Jun 2001 10:04:55 -0700
- Cc: binutils at sourceware dot cygnus dot com
- References: <20010607093407.D13198@lucon.org>
"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