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: gdb & BOOL



I have tested what you say using gcc and gdb from the Terminal and found a similar result:

The line: "BOOL alex = NO;" appears in gdb as "alex = 0 '\000'". If I understand it correctly that is not really a pointer but a "number". Looking at the corresponding header the type is defined as "typedef signed char BOOL;" That seems to be consistent.

Regards


Alexander Fischer




On Nov 29, 2005, at 22:43 , Jonathan del Strother wrote:

gdb seems to be interpreting BOOL types as pointers - in both the console and the variable viewer, they're being given as (for instance) 0x1000000.
bool types (note the lowercase) are interpreted normally, and appear as 'true' or 'false'.

Anyone else experiencing this?  Is there anything I can do to fix it?

Cheers,
Jon _______________________________________________
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

 _______________________________________________
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: 
 >gdb & BOOL (From: Jonathan del Strother <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.