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

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