help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs doesn't show source file when debugging with GDB


From: Nick Roberts
Subject: Re: Emacs doesn't show source file when debugging with GDB
Date: Thu, 15 May 2008 23:16:42 +1200

 > 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 via email to

[Prev in Thread] Current Thread [Next in Thread]