GDB: Getting information about a window
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