February 1st, 2013, 09:55 AM
Join Date: Jan 2013
Time spent in forums: 39 m 3 sec
Reputation Power: 0
Gdb pretty printers
Does anyone know how to tell if a given variable is valid when its pretty printer is invoked from gdb.
For example one of my pretty printers uses gdb.parse_and_eval which causes gdb to crash unless the variable has been initialised.
If i put a break point on the first line and try to examine 'f' gdb crashes. If I put a break point after when 'f' has been created everything is fine.
Any information would be extremely helpful