• 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: Stepping over inline functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stepping over inline functions


  • Subject: Re: Stepping over inline functions
  • From: email@hidden
  • Date: Mon, 28 Nov 2005 17:24:31 -0800

The debugger has always behaved this way. I have a bug to fix this
somehow, but it is a but tricky since the debugger doesn't actually
know that these lines come from an inlined function, only that the
source file has changed.  I don't want to step over stuff that's not
an inlined function.

The reason you are seeing it more frequently now is that the gcc
version in Xcode 2.2 has started obeying the always_inline attribute
even at -O0, whereas earlier versions would generally make a function
and use that for all inlines at -O0.

I hope the reason for changing gcc's behavior in this situation was a good one. It seems like it would be a whole lot easier to simply go back to generating a single function at -O0. It would probably be nice to step over inline code at other optimizations though...


Not that this helps much :-(  But at least you'll know what's going
on...

It is nice to know what is going on, thanks.

In Xcode, if you Option-Click in the gutter of the source display in
the debugger, it will continue to the line you clicked on (it's
setting a temporary breakpoint & continuing in one gesture).  That's
a much faster way to skip over a line or two .

That helps a lot, thanks again. _______________________________________________ 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: Stepping over inline functions
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Where is $(PREFIX_HEADER) supposed to come from?
  • Next by Date: Re: Stepping over inline functions
  • Previous by thread: Re: Stepping over inline functions
  • Next by thread: Re: Stepping over inline functions
  • Index(es):
    • Date
    • Thread