=?big5?b?pl6rSKFHIFJlOiBObyBTVEFCUyBkZWJ1ZyBpbmZvcm1hdGlvbiBmb3IgTUlQUw==?=assembly

tim_ouyang@sunplus.com.tw tim_ouyang@sunplus.com.tw
Thu Jul 5 18:47:00 GMT 2001


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



More information about the Binutils mailing list