gdb: clean up error handling in step/continue