Re: debugging with gdb

2006-11-21 Thread Satya
hi, My interactive mode Bison program (http://cs.uic.edu/~spopuri/ibison.html) is only good to debug the structure of a grammar. It does NOT execute semantic actions. So, if you want to look at the value of $1, $2 etc. you must be printing values on the semantic stack .. which is implemented as a

Re: Memory Leaks

2006-11-21 Thread Hans Aberg
On 21 Nov 2006, at 14:00, Paulo J. Matos wrote: The C++ parser uses for parser stack a class like std::vector or std::deque, which invokes the class destructors when the stack is unwound. So if the classes of the objects on the parser stack are properly written, no special cleanup is needed.

Re: debugging with gdb

2006-11-21 Thread Hans Aberg
On 21 Nov 2006, at 17:26, Sean Walton wrote: I am trying to debug bison/yacc with gdb. I want to look at the bison variable $1 -- how do i do it? What is the syntax? (It conflicts with the print history $##.) The $ variables are expanded to something else in the output parser. So one w