Skip to content

Instantly share code, notes, and snippets.

@mystor
Created July 19, 2019 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mystor/cc29ee3ec3b2beb934d2f0ef7a0f134a to your computer and use it in GitHub Desktop.
Save mystor/cc29ee3ec3b2beb934d2f0ef7a0f134a to your computer and use it in GitHub Desktop.
Example session getting cstring outparameter
(rr) p (nsCString*)malloc(sizeof(nsCString))
$65 = (nsCString *) 0x7f74904b3430
(rr) p $65->nsTString()
$66 = void
(rr) p uri->GetSpec(*$65)
$67 = nsresult::NS_OK
(rr) p $65->get()
$68 = 0x7f748a61c50c "about:blank"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment