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

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


References: 
 >GDB: Getting information about a window (From: Eric Gorr <email@hidden>)
 >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: GCC 4.2 parse error in stl_algobase.h: "current namespace 'std' does not enclose..."
  • Previous by thread: Re: GDB: Getting information about a window
  • Next by thread: GCC 4.2 parse error in stl_algobase.h: "current namespace 'std' does not enclose..."
  • Index(es):
    • Date
    • Thread