Skip to content

Instantly share code, notes, and snippets.

@thomaslee
Created November 6, 2015 20:29
Show Gist options
  • Save thomaslee/166eb542e2edc95ed66a to your computer and use it in GitHub Desktop.
Save thomaslee/166eb542e2edc95ed66a to your computer and use it in GitHub Desktop.
capnproto ppc cast bug
(gdb) p reinterpret_cast<void*>(static_cast<uintptr_t>(siginfo.ssi_ptr))
$4 = (void *) 0x0
(gdb) p siginfo.ssi_ptr
$5 = 528280977408
(gdb) p (uintptr_t) siginfo.ssi_ptr
$6 = 0
(gdb) p sizeof(uintptr_t)
$7 = 4
(gdb) p sizeof(siginfo.ssi_ptr)
$8 = 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment