• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[GDB] template bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GDB] template bug


  • Subject: [GDB] template bug
  • From: "Jens Frederich" <email@hidden>
  • Date: Thu, 9 Aug 2007 10:02:01 +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.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [GDB] template bug
      • From: Thomas Engelmeier <email@hidden>
    • Re: [GDB] template bug
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: How to change files intestation...
  • Next by Date: Re: [GDB] template bug
  • Previous by thread: Re: Xcode-users Digest, Vol 4, Issue 383
  • Next by thread: Re: [GDB] template bug
  • Index(es):
    • Date
    • Thread