[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs gud does not work with libtool
From: |
Stefan Monnier |
Subject: |
Re: emacs gud does not work with libtool |
Date: |
16 Oct 2003 13:24:23 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> Run gdb (like this): libtool gdb -fullname ~/myprog
> doesn't as the GUD buffer is called gud-gdb and the default directory is
> not set to that of the executable.
The problem is that there's simply no reliable way to find the executable's
path. Some people do `make debug' to run their debugger with the proper
arguments, and there's just no way you can figure out where is the
executable just from the command line.
Now, obviously the problem with the buffer-name is a non-issue.
But what about the default-directory: what kind of impact does it have
and how could we address those problems?
The only impact I know of is "jump to source file" where the path is
relative to somewhere (typically the debugger's cwd). But even there,
the executable's path might not give us the proper cwd, so we really need
some way for the user to easily and conveniently tell GUD where to find
the files in the cases where the heuristics fail.
I don't think making the heuristics more sophisticated, as your patch does,
is a good way to solve the problem.
Stefan