Skip to content

Instantly share code, notes, and snippets.

@pastacolsugo
Created November 26, 2019 12:16
Show Gist options
  • Save pastacolsugo/f2e4f5f4951d9938c734417f0b566841 to your computer and use it in GitHub Desktop.
Save pastacolsugo/f2e4f5f4951d9938c734417f0b566841 to your computer and use it in GitHub Desktop.
LLDB C/C++ Debugging

C/C++ Debugging with LLDB

Printing Arrays

int v[5] = {10, 20, 50, 30, 40};
(lldb) parray 5 (int*)v
(int *) $7 = 0x00007ffeefbff970 {
  (int) [0] = 10
  (int) [1] = 20
  (int) [2] = 50
  (int) [3] = 30
  (int) [4] = 40
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment