Re: GDB: Getting information about a window
Re: GDB: Getting information about a window
- Subject: Re: GDB: Getting information about a window
- From: Jason Molenda <email@hidden>
- Date: Tue, 25 Aug 2009 12:47:23 -0700
On Aug 25, 2009, at 12:00 PM, Eric Gorr wrote:
On Aug 25, 2009, at 2:54 PM, Eric Gorr wrote:
(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 would still be interested to learn if it was possible to make a
call to something like CopyWindowTitleAsCFString from the GDB
command line.
You do two inferior function calls to accomplish this, e.g.
(gdb) call (void*) malloc (sizeof (CFStringRef))
$1 = (void *) 0x1006062d0
(gdb) call (OSStatus) CopyWindowTitleAsCFString (winref, $1)
The $1 history value in gdb is the address of 8 bytes of memory (this
example x86_64) on the heap that we got back from malloc (0x1006062d0).
J
_______________________________________________
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