Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7166779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:28:06+00:00 2026-05-28T14:28:06+00:00

I am running gdb from inside emacs and am looking for an automatic way

  • 0

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 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:28:07+00:00Added an answer on May 28, 2026 at 2:28 pm

    You can customize GUD GDB’s command-line. Unfortunately, this is a global setting, and not something per-buffer/-project…

      M-x customize-apropos gud
    

    (or navigate to Customize group Emacs/Programming/Tools/Gud)

    Look for Gud Gdb Command Name and set it to something like

      gdb --annotate=3 -d /usr/src/whatever -d ~/more/src
    

    (The --annotate=3 is required for GUD to work properly.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Emacs 22.3 in Windows. Earlier today I had gdb working within Emacs
I'm debug-running a daemon application in foreground mode inside gdb inside a tmux session.
Why is it that when running code from gdb, I get the same addresses
I am currently running gdb version 6.7.1 on Ubuntu Linux, and working in a
I am running an application through gdb and I want to set a breakpoint
I'm running my C++ program in gdb. I'm not real experienced with gdb, but
Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run
I am running a Python GUI application. I want to invoke and control GDB
I'm trying to use gdb with emacs. The library that I'm trying to debug
I have just discovered C-x C-a C-j (jump to cursor) when running gdb in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.