• 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
FOUNDATION_STATIC_INLINE is a pain with GCC 4 and Debugger stepping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FOUNDATION_STATIC_INLINE is a pain with GCC 4 and Debugger stepping


  • Subject: FOUNDATION_STATIC_INLINE is a pain with GCC 4 and Debugger stepping
  • From: Matt Gough <email@hidden>
  • Date: Mon, 21 Nov 2005 15:42:20 +0000

Previously, stepping over any calls to NSMakeRange, NSMakeSize , NSMakeRect etc in the debugger behaved as expected

Unfortunately with GCC 4, these calls are always being inlined due to the definition of:

#define FOUNDATION_STATIC_INLINE static __inline__ __attribute__ ((always_inline))

As such, attempting to step over them results in the equivalent of stepping into them, so I often end up looking at the following when I don't want to:

FOUNDATION_STATIC_INLINE NSRange NSMakeRange(unsigned int loc, unsigned int len) {
NSRange r;
> r.location = loc;
r.length = len;
return r;
}



I have worked around that by adding:

#define FOUNDATION_STATIC_INLINE static __inline__

to my development prefix file, but that is a bit of a pain to have to do in all projects.


Anyone got any better suggestions (that don't involve modifying NSObjCRuntime.h directly)


Matt Gough
Softchaos Limited
_______________________________________________
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


  • Prev by Date: lazy symbol binding failed
  • Next by Date: Avoiding stepping-in
  • Previous by thread: lazy symbol binding failed
  • Next by thread: Avoiding stepping-in
  • Index(es):
    • Date
    • Thread