On Sat, Apr 19, 2003 at 05:20:27PM -0700, Mike Connors wrote:
> Hi All,
> I'm using gcc v2.96 to compile a MIPS targeted Linux kernel
> and am finding it difficult to produce debug information
> for assembly files.
> I've discovered that a typical compile line for assembly
> in the kernel gets its parameters from AFLAGS and results
> in the following commandline:
> mipsel-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/l/include \
> -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 \
> -Wa,--trap -pipe -c entry.S -o entry.o
> According to the documentation, some targets support
> dwarf debug information using --gdwarf2. Does anyone
> know if the MIPS target is supported in version?
> Also, --gstabs doesn't seem to work either. Nor does
> -gdwarf-2, -gdwarf -g2, -gstabs+, -gdwarf+, etc.
> Has anyone had luck producing debug information for
> assembly files with this version of gcc?
> ./mipsel-linux-gcc --version
> ./mipsel-linux-as --version
> GNU assembler 22.214.171.124.10
I think --gstabs is later than that version of binutils. Also, I
didn't fix DWARF-2 for MIPS until well after those tools versions,
so I believe you won't be able to use that at all.
MontaVista Software Debian GNU/Linux Developer