Error during debugging
daviddoria
daviddoria@gmail.com
Tue Feb 10 01:33:00 GMT 2009
If I step into a function like this
Vec3f Test()
{
Vec3f V = getVelocity(pos);
return V;
}
I get an error:
mi_cmd_var_create: unable to create variable object
DWARF-2 expression error: DW_OP_reg operations must be used either alone or
in conjuction with DW_OP_piece.
But if I change it to:
Vec3f Test()
{
return getVelocity(pos);
}
Then it works as expected. Anyone know how to fix this? I looked online and
saw to try -g3 -O0, so I did that and it didn't change anything.
Thoughts?
Thanks,
Dave
--
View this message in context: http://www.nabble.com/Error-during-debugging-tp21925976p21925976.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
More information about the Gdb
mailing list