I don't use emacs, but I know xemacs can be used as a front-end for gdb (used it before). However, my code is cross-compiled, so I can't run gdb, I have to run a specific version of gdb that's for the cross-compiled code (let's call it gdb-foo). How do I set xemacs up to run the alternate gdb?
When I use M-x, gdb
I get the prompt:
Run gdb on file:
I remember seeing something like this:
Run gdb like this:
But I don't know how to get that.
Next, once I learn how to do it this way, how can I do it as a one-liner I can run from bash, including gdb-foo and attach options? (I know bash scripting; I just need the incantation for xemacs.)