[nem-en] Debugger

Michal Moskal michal.moskal at gmail.com
Wed May 9 11:06:04 CEST 2007


On 5/9/07, Igor Tkachev <it at rsdn.ru> wrote:
> Hello Michal, Kamil,
>
> For the last few weeks I've been working on debugger support of the
> compiler. Finally I found out that the way it is made is not going to
> work. There are too many special cases and hardcoding, lost original
> information, and so on.
>
> Now I am thinking of another solution and I need your advice. The idea
> is to add one more option in the TExpr variant – DebuInfo (or
> something). We can create it while Typer is working and then we will
> need to pass it though Typers 2, 3, and 4 somehow.
>
> Actually, my question is – is it possible? Are there any difficulties
> which will not allow me to get though the Typer methods?

I don't think there is any intrinsic difficulty. It going to be
tedious, but seems like a proper way to do it. I guess it would be
good idea to add constructor to TExpr, that would take the original
TExpr and copy information (type, location, debug info).

-- 
   Michał


More information about the devel-en mailing list