Is there a way of doing on-chip debugging of Arduino Uno (atmega328p) with gdb on the command line? I'm looking for something simplistic and excluding IDE solutions like Eclipse and Atmel Studio. I use VIM for programming and compile my code with a cmake build system provided by queezythegreat.
I had a look at my options but didn't get a clear answer to what tools I would need. Would gdb alone be enough or do I need something like openOCD?
Thank you for the help!