GDB Cheatsheet

GNU Debugger

Print a portion of an array using @ operator

Print 4 elements of arr, starting at index 2: p arr[2]@4