Helper for running gdb command in rr.