• 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
Opposite of "step out"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opposite of "step out"


  • Subject: Opposite of "step out"
  • From: "Hamish Allan" <email@hidden>
  • Date: Thu, 9 Oct 2008 22:56:33 +0100

I'm a gdb newbie (only ever having used it through the XCode IDE), so
please be gentle!

I'm looking for the opposite of "step out". Yeah, I know what you're
thinking, "step into" :) But what I'm really looking for is "step into
next method call, not necessarily at the current position".

Let's say I have a stack looking like this, having set a breakpoint at
line 17 of MyImageCell.m:

#0	0x00038b4e in -[MyImageCell setObjectValue:] at MyImageCell.m:17
#1	0x90548b8b in -[NSControl setObjectValue:]
#2	0x9089d3c4 in -[NSImageView setObjectValue:]
#3	0x905fb167 in -[NSValueBinder showValue:inObject:]

Even though the calls marked #1, #2, and #3 are in the framework and
therefore show asm instead of Obj-C source, the debugger still knows
enough to be able to show me what those method calls were called.

If I press "step out" 3 times, I'll end up with the -[NSValueBinder
showValue:inObject:] call at the top of the stack, and the program
counter pointing at some instruction immediately after the call
<dyld_stub_objc_msgSend> which was presumably what sent me into
-[NSImageView setObjectValue:].

I want to be able to do this the other way round. So if I set a
symbolic breakpoint on -[NSValueBinder showValue:inObject:], I want a
button that I can press which will take me to -[NSImageView
setObjectValue:]. ("Step into", of course, only takes me to the next
asm instruction.)

Okay, so that method call might not be the first call from
-[NSValueBinder showValue:inObject:]. In an ideal world, I'd have a
way of stepping until the first call, and also a way of stepping to a
particular named call.

Is this possible?

Many thanks,
Hamish
 _______________________________________________
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: Opposite of "step out"
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: man page searching no longer works?
  • Next by Date: Re: Opposite of "step out"
  • Previous by thread: Re: LLVM
  • Next by thread: Re: Opposite of "step out"
  • Index(es):
    • Date
    • Thread