That's what the helper is for. You can also google for some helper scripts for gdb which do the same. Nevertheless the code should compile.