[GDB] template bug
[GDB] template bug
- Subject: [GDB] template bug
- From: "Jens Frederich" <email@hidden>
- Date: Thu, 9 Aug 2007 09:40:43 +0200
Hi all,
I hope this is the right mailing list for my problem.
I want print out the component of a template based vector 3 in gdb.
The vector is a c++ template with float or double as template parameters.
The components in the vector are float x, y and z.
I tried to print the vector in gdb and I become following output.
(gdb) p edge10
$4 = {
x = Unexpected type (8) encountered for integer constant.
(gdb) p edge10.x
Unexpected type (8) encountered for integer constant.
(gdb) p edge10[0]
$5 = (const VGLfloat &) @0xbfff869c: 0
(gdb)
How you can see above, I cant print out the complete vector or a serveral component.
The array operator is the only one that works.
Has anyone a solution? May be I need a special compiler flag? The same works under linux successful.
System:
osx 10.4.10
gcc 4.0.1
gdb 6.3.50
Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden