• 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: isKindOfClass: fails in the debugger now?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isKindOfClass: fails in the debugger now?


  • Subject: Re: isKindOfClass: fails in the debugger now?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 15 Jul 2011 12:01:09 +0200


Le 15 juil. 2011 à 02:08, Laurent Daudelin a écrit :

I thought I did use this many times before but I'm not sure if I'm missing something, each time I try something like:

(gdb) p (BOOL)[node isKindOfClass:(Class)[NSObject class]]

The stupid debugger returns:
A syntax error in _expression_, near `]]'.

I can't see where the syntax error is. Am I blind or too tired?

(This is with 3.2.6 under SL)


That's may be a limitation in the gdb parser.  Are you debugging Obj-C++ or Obj-C. If this is Obj-C++, it may come from 'class' that is interpreted as the class c++ keyword instead of the class selector.
As gdb implements its own _expression_ parser, there is severe limitations in what it can parse.

Anyway, you can workaround this problem by using NSClassFromString(@"NSObject") instead of [NSObject class]


-- Jean-Daniel




 _______________________________________________
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

References: 
 >isKindOfClass: fails in the debugger now? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: isKindOfClass: fails in the debugger now?
  • Next by Date: xcode migration problem?
  • Previous by thread: isKindOfClass: fails in the debugger now?
  • Next by thread: xcode migration problem?
  • Index(es):
    • Date
    • Thread