I am running gdb from inside emacs and am looking for an automatic way to specify the source directories in my .emacs file. Basically, it is becoming a pain to always specify the source file directories for gdb 🙂
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can customize GUD GDB’s command-line. Unfortunately, this is a global setting, and not something per-buffer/-project…
(or navigate to Customize group Emacs/Programming/Tools/Gud)
Look for Gud Gdb Command Name and set it to something like
(The
--annotate=3is required for GUD to work properly.)