Mailing Lists: Apple Mailing Lists

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

Re: Subject: gdb & BOOL




On 30 Nov 2005, at 14:21, Cameron Hayne wrote:

On 30-Nov-05, at 8:19 AM, Jonathan del Strother wrote:

Based on what you're telling me (and what I see for the BOOL #define), I would've expected this from gdb :
(gdb) p testBOOL
$1 = 1 '\001'

That's exactly what I get with the following program when I compile it with 'cc -g foo.m -o foo' and then run it under 'gdb':
<snip>

Hmph, same here. Seems like it's just this one project I'm working on, then. Any suggestions on tracking down the cause of this?

It's weird, sizeof(BOOL) comes up as 1 (correct), and printing the value gives 1 or 0 (correct). It's just the debugger's display of it that seems crazy.

Jon

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Subject: gdb & BOOL (From: Thomas Engelmeier <email@hidden>)
 >Re: Subject: gdb & BOOL (From: Jonathan del Strother <email@hidden>)
 >Re: Subject: gdb & BOOL (From: Cameron Hayne <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.