This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: No STABS debug information for MIPS assembly


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]