• 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 of va_alist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb of va_alist?


  • Subject: gdb of va_alist?
  • From: "David Springer" <email@hidden>
  • Date: Wed, 15 Oct 2008 10:23:27 -0600

Folks,
I am looking into some legacy code that is called from a third-party
library.  The function being called has this signature:

AStringClass PlatformSpecificImplClass::formatMessage(unsigned int code,
va_list* argList)

The problem is that on x86 platforms, |argList| seems to point to a valid
4-byte unicode string "(null)", but on PPC, this string appears to be
garbled.  I say "appears to be" because I can't actually tell, since in
Xcode I have no visibility into |argList|.  Is there a way I can examine the
contents of this pointer?  I know the expected format of the memory, but I
don't know how to access it in gdb (or Xcode).  I am using Xcode 2.5, all
this code is built on a 10.5 box using g++.

Thanks!
- Dave.S
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: gdb of va_alist?
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: how to complete c/s app
  • Next by Date: Re: -[NSGarbageCollection disableCollectorForPointer:] ?
  • Previous by thread: panelSelectionDidChange does not get called for items on the sidebar
  • Next by thread: Re: gdb of va_alist?
  • Index(es):
    • Date
    • Thread