Two problems I'd like to solve: 1. Send a command to a gdb session inside emacs. 2. Wait for this command to finish The first one doesn't seem to be directly supported (odd?) but the second one is reallyu not trivial. Since all commands are a-synchronous, this requires some kind of callback. First one can use 'gud-call which is undocumented, but seems to do what I want.