C/CPP: Add gdb test program