gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] gdb support from gcc-cobol


From: Keisuke Nishida
Subject: Re: [open-cobol-list] gdb support from gcc-cobol
Date: Tue May 27 05:39:06 2003
User-agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryƍmae) APEL/10.3 Emacs/21.2 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI)

At Sun, 25 May 2003 21:09:48 +0200,
Bernard Giroud wrote:
> 
> I think I found what happens: in C, you have the function definition
> with parameters,
> and the top level block where the vars are defined. When you call
> poplevel from
> cb_end_function, because the flag functionbody is on, the BLOCK_VARS is
> reset to 0. If that last statement is commented out, we get the vars
> defined in the
> assembly file.
> 
> So I'm currently trying to modify slightly the code of cb_end_function
> to
> insert a new block which will hold the needed vars, but with no success
> ATM:
> the vars are still not output from the second level block.
> 
> Is my reasoning wrong ? Any hint would be welcome (See function below.)

I am not sure.  I encountered the same problem and have not
investigated it yet.

Maybe we could start with a tiny front end, apart from gcc-cobol,
investigate how to generate debugging information, and integrate
it into gcc-cobol.

Keisuke


reply via email to

[Prev in Thread] Current Thread [Next in Thread]