From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3) Date: Wed, 9 Feb 2011 10:53:34 +0100 Message-ID: References: <5881e0b5-e97d-4ab4-8284-55882b034eab@o21g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297245288 3951 80.91.229.12 (9 Feb 2011 09:54:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Feb 2011 09:54:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dylan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 09 10:54:43 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pn6ky-0007EB-TJ for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Feb 2011 10:54:41 +0100 Original-Received: from localhost ([127.0.0.1]:39954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn6ky-0008Gr-EA for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Feb 2011 04:54:40 -0500 Original-Received: from [140.186.70.92] (port=40031 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn6k2-0008GA-7j for help-gnu-emacs@gnu.org; Wed, 09 Feb 2011 04:53:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pn6k1-0006lW-7T for help-gnu-emacs@gnu.org; Wed, 09 Feb 2011 04:53:42 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:59461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pn6k1-0006lL-01 for help-gnu-emacs@gnu.org; Wed, 09 Feb 2011 04:53:41 -0500 Original-Received: from smtp03.web.de ( [172.20.0.65]) by fmmailgate01.web.de (Postfix) with ESMTP id 8FE98187A2DA2; Wed, 9 Feb 2011 10:53:38 +0100 (CET) Original-Received: from [91.35.255.231] (helo=[192.168.1.2]) by smtp03.web.de with asmtp (WEB.DE 4.110 #2) id 1Pn6jy-0005ee-00; Wed, 09 Feb 2011 10:53:38 +0100 In-Reply-To: <5881e0b5-e97d-4ab4-8284-55882b034eab@o21g2000prn.googlegroups.com> X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/Ur5pQ6OnSHej3G3KDbXjmEMYEQtwnlIge5Moh M7xVD0pajWdQUPrq+k1abdw0aD3CIivWbFxHv/VQNWqfFNCgfR 8YKexJF9T6acif8sjuAQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.221 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79046 Archived-At: 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/=20 environment.plist! Better use cleverly: PATH=3D`defaults read "${HOME}/.MacOSX/environment" PATH` or, if you really (why?) need to alter the default value from =20 ~/.MacOSX/environment.plist: PATH=3D/Whatever:/else:`defaults read = "${HOME}/.MacOSX/environment" PATH` Shells in whatever tools inherit from your login environment which in =20= turn is set by ~/.MacOSX/environment.plist. Their RC files can be =20 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 =20 (interactive, login, ...). Additional setup has to be done exactly for =20= this targeted mode. 3.) In Emacs you can check its process environment by two means. In =20 *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 =20 word "Emacs", with a capital E. So you can learn from this where Emacs =20= searches for binaries, for example. 4.) You can also invoke: M-x shell-command RET which RET and in echo-area the path-name will appear. If not, than something is =20= wrong. Than you can start debugging by adding to your login shell's RC =20= files (best all) lines like: echo "Hello! My name is ." and see which is executed when you perform shell-command. 5.) What is GUD/GDB documentation telling you about the name of the =20 gdb executable? Is it fixed or is set to some value by a variable? =20 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!" =96 Mohandas Karamchand Gandhi