• 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
Re: serious problems in GDB / LLDB debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: serious problems in GDB / LLDB debugger


  • Subject: Re: serious problems in GDB / LLDB debugger
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 16 Aug 2011 16:38:39 -0700

On Aug 16, 2011, at 15:25 , J wrote:

Of course you're right, I should've given the code for the << operator on Mat4, here it is:

std::ostream & operator << ( std::ostream & s, const Mat4 & v ) { 
static char txt[256];
sprintf( txt, "%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g", \
v[ 0 ], v[ 1 ], v[ 2 ], v[ 3 ], \
v[ 4 ], v[ 5 ], v[ 6 ], v[ 7 ], \
v[ 8 ], v[ 9 ], v[ 10 ], v[ 11 ], \
v[ 12 ], v[ 13 ], v[ 14 ], v[ 15 ] );
s << txt;
return s;
}

Incidentally, this may one of the cases when the difference between float and double matters. (I can never remember the rules about this. But others can.) If %g is expecting a double argument (I think it is), and the variable argument list isn't promoting your floats to doubles (I think it is not), you're producing garbage here.


 _______________________________________________
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: serious problems in GDB / LLDB debugger
      • From: Clark Cox <email@hidden>
    • Re: serious problems in GDB / LLDB debugger
      • From: J <email@hidden>
References: 
 >Re: serious problems in GDB / LLDB debugger (From: J <email@hidden>)

  • Prev by Date: Re: serious problems in GDB / LLDB debugger
  • Next by Date: Re: serious problems in GDB / LLDB debugger
  • Previous by thread: Re: serious problems in GDB / LLDB debugger
  • Next by thread: Re: serious problems in GDB / LLDB debugger
  • Index(es):
    • Date
    • Thread