• 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
GDB: Getting information about a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB: Getting information about a window


  • Subject: GDB: Getting information about a window
  • From: Eric Gorr <email@hidden>
  • Date: Tue, 25 Aug 2009 14:54:11 -0400

I need to figure out which window the function GetUserFocusWindow has returned from within GDB

(gdb) call (WindowRef)GetUserFocusWindow()
$1 = (WindowRef) 0x1f7dc6e0


I figured that the easiest way would be to get the title of the window using something like CopyWindowTitleAsCFString, but I am uncertain how to make this kind of call from within GDB. My various attempts so far simply result in an error message mentioning KERN_PROTECTION_FAILURE, etc.


(CopyWindowTitleAsCFString takes two parameters....the first is a WindowRef and the second is a pointer to a CFStringRef. It returns an OSStatus error code.)

I'm not that adept as using GDB from the command line and was hoping that someone might have a suggestion.



_______________________________________________
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: GDB: Getting information about a window
      • From: Eric Gorr <email@hidden>
  • Prev by Date: Re: Adding existing svn files to new project
  • Next by Date: Re: GDB: Getting information about a window
  • Previous by thread: Re: Xcode fails to remember recently opened files/projects
  • Next by thread: Re: GDB: Getting information about a window
  • Index(es):
    • Date
    • Thread