I have a program that I would like to debug using gdb via emacs. To run versions for this program, I have a shell script, which can be a source that sets up the calling environment to view the correct libraries, etc. I can't figure out how to ask emacs / gud send this file before gdb is executed.
I tried using the command "source env.sourceme && gdb my_program", but emacs complains that it does not know what "source" means. I assume that this really does not work gdb in the shell, so these tricks will not work.
So how can I convince gud / emacs / whatever to run gdb in my custom environment? I have a hacker solution in place, but I feel like I'm missing something.
abingham
source share