How to view a pointer like an array in GDB? February 2, 2023 by Tarik See here. In short you should do: p *array@len