Skip to content

Instantly share code, notes, and snippets.

@kangaroo
Created February 7, 2015 06:18
Show Gist options
  • Save kangaroo/3e794734726bd65a942f to your computer and use it in GitHub Desktop.
Save kangaroo/3e794734726bd65a942f to your computer and use it in GitHub Desktop.
(lldb) up
frame #1: 0x00000001019c506a libcoreclr.dylib`CoreVsnprintf(pthrCurrent=0x0000000100806800, Buffer=0x0000000102863820, Count=2147483647, Format=0x0000000101c08920, ap=0x000000111beff120) + 5434 at printfcpp.cpp:1709
1706 else
1707 {
1708 TempInt = NativeVsnprintf(pthrCurrent, BufferPtr, TempCount, TempBuff, ap);
-> 1709 PAL_printf_arg_remover((va_list *)&ap, Precision, Type, Prefix);
1710 }
1711
1712 if (TempInt < 0 || static_cast<size_t>(TempInt) >= TempCount) /* buffer not long enough */
(lldb) p &ap
(__va_list_tag **) $13 = 0x000000011befeac0
(lldb) down
frame #0: 0x00000001019b9681 libcoreclr.dylib`PAL_printf_arg_remover(ap=0x000000011befeac0, Precision=-1, Type=7, Prefix=-1) + 241 at printf.cpp:151
148 }
149 if (Type == PFF_TYPE_FLOAT)
150 {
-> 151 (void)va_arg(*ap, float);
152 }
153 else if (Type == PFF_TYPE_INT && Prefix == PFF_PREFIX_LONGLONG)
154 {
(lldb) p/x $rsi
(unsigned long) $14 = 0x000000011befeac4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment