This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: No STABS debug information for MIPS assembly
- To: tim_ouyang at sunplus dot com dot tw
- Subject: Re: No STABS debug information for MIPS assembly
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 05 Jul 2001 12:03:47 +0100
- Cc: binutils at sourceware dot cygnus dot com
- References: <OF8D04A36A.71A3AF42-ON48256A80.003587AF@sunplus.com.tw>
Hi Tim,
> I usually use gcc to assemble my MIPS assembly codes with STABS
> debug information.
> When I upgraded binutils from 2.10.1 to 2.11.2, I found I cannot
> debug assembly files anymore.
> After some checks, I found if I delete 2 lines in gas/ecoff.c:
>
> 2223,2224d2222
> < else
> < debug_type = DEBUG_NONE;
>
> The assembler will generate the debug information again.
> I don't know why these 2 lines are added into ecoff.c and what will be
> changed by deleting these 2 lines.
>
> Please someone verify this patch.
I think that this patch may not be quite right. Please could you try
applying the alternative patch below and let me know if it works for
you.
Cheers
Nick
Index: gas/ecoff.c
===================================================================
RCS file: /cvs/src/src/gas/ecoff.c,v
retrieving revision 1.9
diff -p -r1.9 ecoff.c
*** ecoff.c 2001/05/03 02:07:01 1.9
--- ecoff.c 2001/07/05 11:01:48
*************** add_file (file_name, indx, fake)
*** 2220,2226 ****
if (! symbol_table_frozen && debug_type == DEBUG_UNSPECIFIED)
debug_type = DEBUG_ECOFF;
}
! else
debug_type = DEBUG_NONE;
#ifndef NO_LISTING
--- 2220,2226 ----
if (! symbol_table_frozen && debug_type == DEBUG_UNSPECIFIED)
debug_type = DEBUG_ECOFF;
}
! else if (debug_type == DEBUG_UNSPECIFIED)
debug_type = DEBUG_NONE;
#ifndef NO_LISTING