This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]