How to get gdb onto ADALM2000 or ADALM Pluto to debug arm compiled program?

I compile a C program on my laptop and scp it to my M2K. I get a segmentation fault when I work with the iio buffers.

How can I debug the ARM compiled program with gdb?