This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Error during debugging
- From: daviddoria <daviddoria at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 9 Feb 2009 17:32:58 -0800 (PST)
- Subject: Error during debugging
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.