gdb doesn't show source code at debugging

Stephen J. Turnbull stephen at xemacs.org
Mon Jun 5 08:10:50 EDT 2006


>>>>> "John" == John Doe <ripper.john at gmail.com> writes:

    John> I use gdb 6.3-2 for MinGW. During work the debugger does not
    John> show a source code. After start, at step-by-step debugging
    John> the editor shows two windows: top for commands of a debugger
    John> and bottom, which is empty.

How do you enter the debugger from XEmacs?

Your packages are old; gdb.el is part of the debug package, whose
release version is 1.18 (this may be in prerelease), but yours is at
1.17.  xemacs-base is currently at 2.05 or later, but you have 2.01
installed.

    John> In emacs 22.0.50.1 I do not observe such problem.

You're debugging the same code with XEmacs and with GNU Emacs, and
it's not stripped, preferably compiled with gcc -g, right?

Even if so, this is not particularly surprising, since the Emacs
version and the XEmacs version for gdb.el and comint.el haven't been
synch'ed in a long time.  There is currently work in progress to that
end, though, which is only partially done.  I'm not sure how much of
that work has already been incorporated in the distribution; the
intent is only to add code that has been debugged, but it's not always
easy to tell.

XEmacs 21.4 is unlikely to change in ways that affect gdb, but the
related packages are known to be in flux.  I recommend that you
upgrade at least the debug (for gdb.el and friends) and xemacs-base
packages (for comint.el).


-- 
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.




More information about the XEmacs-Beta mailing list