[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3)
From: |
Peter Dyballa |
Subject: |
Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3) |
Date: |
Wed, 9 Feb 2011 10:53:34 +0100 |
Am 09.02.2011 um 01:48 schrieb Dylan:
Any other ideas??
Yes.
1.) Don't repeat in ~/.bash_profile what you've set in ~/.MacOSX/
environment.plist! Better use cleverly:
PATH=`defaults read "${HOME}/.MacOSX/environment" PATH`
or, if you really (why?) need to alter the default value from
~/.MacOSX/environment.plist:
PATH=/Whatever:/else:`defaults read "${HOME}/.MacOSX/environment" PATH`
Shells in whatever tools inherit from your login environment which in
turn is set by ~/.MacOSX/environment.plist. Their RC files can be
kept simple and basic. (Try it, if you don't believe.)
2.) Bash is a beast that has a few too many modes of mixed operation
(interactive, login, ...). Additional setup has to be done exactly for
this targeted mode.
3.) In Emacs you can check its process environment by two means. In
*scratch* buffer you can execute this Lisp and similar code:
(getenv "PATH")
or invoke in *shell* buffer a UNIX command like this:
ps -lwwwxE | egrep UID\|Emacs | grep -v grep
It will list the environment of a process that has in its name the
word "Emacs", with a capital E. So you can learn from this where Emacs
searches for binaries, for example.
4.) You can also invoke:
M-x shell-command RET which <name of fsf-gdb binary> RET
and in echo-area the path-name will appear. If not, than something is
wrong. Than you can start debugging by adding to your login shell's RC
files (best all) lines like:
echo "Hello! My name is <appropriate file name>."
and see which is executed when you perform shell-command.
5.) What is GUD/GDB documentation telling you about the name of the
gdb executable? Is it fixed or is set to some value by a variable?
I've seen a
(defcustom gud-gud-gdb-command-name "gdb --fullname"
... which could explain why a name "fsf-gdb" would never be found.
--
Greetings
Pete
"What do you think of Western Civilisation?"
"I think it would be a good idea!"
– Mohandas Karamchand Gandhi
- gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Dylan, 2011/02/05
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Peter Dyballa, 2011/02/05
- Message not available
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Dylan, 2011/02/07
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Peter Dyballa, 2011/02/07
- Message not available
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Dylan, 2011/02/08
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3),
Peter Dyballa <=
- Message not available
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Dylan, 2011/02/10
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Peter Dyballa, 2011/02/10
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Peter Dyballa, 2011/02/11
- Message not available
- Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3), Dylan, 2011/02/11