all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: "Francis Moreau" <francis.moro@gmail.com>
Cc: gnu-emacs-help@gnu.org
Subject: Re: Emacs doesn't show source file when debugging with GDB
Date: Thu, 15 May 2008 23:16:42 +1200	[thread overview]
Message-ID: <18476.7066.285885.346581@kahikatea.snap.net.nz> (raw)
In-Reply-To: <38b2ab8a0805150258l6c897a1ewd608926f73db2b0f@mail.gmail.com>

 > I'm using gdb inside emacs.

What version of Emacs are you using?  What configuration?
(M-x report-emacs-bug will provide these details).

 > One nice feature, is that Emacs can show the source files for the program I'm
 > debugging with GDB. But after reinstalling a brand new distrib, Emacs doesn't
 > show the source files anymore.

Emacs should still show the source.  Which distribution did you use?
Did you compile with -g?
Are you sure that Gdb is stopping in a file that has debug information, i.e.
not a system library?

 > Still gdb can, if I list the source but it's not really convenient.

How do you run Gdb?  Hopefully like this:

Run gdb (like this): gdb --annotate=3 myprog

If you remove the --annotate=3 option, Emacs will behave as you describe.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




  reply	other threads:[~2008-05-15 11:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15  9:58 Emacs doesn't show source file when debugging with GDB Francis Moreau
2008-05-15 11:16 ` Nick Roberts [this message]
2008-05-15 12:00   ` Francis Moreau
2008-05-15 23:29     ` Nick Roberts
2008-05-16  9:22       ` Francis Moreau
2008-05-16  9:54         ` Nick Roberts
2008-05-16 10:01           ` Francis Moreau
2008-05-16 10:09             ` Nick Roberts
2008-05-16 10:28               ` Francis Moreau
2008-05-16 21:28                 ` Nick Roberts
2008-05-19  7:47                   ` Francis Moreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18476.7066.285885.346581@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=francis.moro@gmail.com \
    --cc=gnu-emacs-help@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.