This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
=?big5?b?pl6rSKFHIFJlOiBObyBTVEFCUyBkZWJ1ZyBpbmZvcm1hdGlvbiBmb3IgTUlQUw==?=assembly
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Subject: =?big5?b?pl6rSKFHIFJlOiBObyBTVEFCUyBkZWJ1ZyBpbmZvcm1hdGlvbiBmb3IgTUlQUw==?=assembly
- From: tim_ouyang at sunplus dot com dot tw
- Date: Fri, 6 Jul 2001 09:42:24 +0800
- Cc: binutils at sourceware dot cygnus dot com
On 2001/07/05 07:03:47 PM nickc'wrote:
> 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
>
>
Yes. Your patch works for me. I hope this patch will be added into the CVS
tree.
Think you!
With regards,
Tim Ouyang (¼Ú¶§¤h®x)
IP Design Department
Intellectual Property Development Division
Sunplus Technology Co., Ltd.
19, Innovation Road 1, Science-Based Industrial Park, Hsin-Chu, Taiwan
Phone: +886-3-5786005 Ext. 2467
Fax: +886-3-5784418