[M3devel] dbxout_static_chain_decl?

Rodney M. Bates rodney_bates at lcwb.coop
Thu May 27 00:37:07 CEST 2010


I left it in because it is a work in progress.  I *really* want to get it to
work, and I don't what to have to reinvent what is already there when I get
to it.  I use nested procedures extensively in certain situations, and good
debugger support of them is important to me.  It all works fine on older code
generators than the gcc that added tree-nested.c.

Jay K wrote:
> Rodney, you added this function, along with a comment that says it doesn't actually work.
> Does it work?
> Does it accomplish anything?
> Can I remove it and its calls?
> 
> /* Special-purpose function to write stabs for the static_chain_decl. 
>    So far, this is not working.  m3gdb needs the place in the activation
>    record where the SL is stored.  Right now, the SL is not necessarily
>    stored at all, but may just be kept in a register.  DECL_RTL and 
>    DECL_INCOMING_RTL may both have register expressions.  But stabs
>    entries for register variables, of kind N_RSYM, are currently ignored
>    by gdb in dbxread.c, and making it read them could create problems
>    elsewhere, because there can be other variables for which both an
>    N_RSYM and an N_LSYM stabs entry are created.   
> */ 
> static int 
> dbxout_static_chain_decl (tree decl) 
> 
> It was added 19 months ago by:
>   http://modula3.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/m3cc/gcc/gcc/dbxout.c.diff?r1=1.8;r2=1.9
> 
> as well, do we need the #if 0 code added then?
> 
>  - Jay
>  		 	   		  



More information about the M3devel mailing list