Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GDB] template bug



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.