From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dylan Newsgroups: gmane.emacs.help Subject: Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3) Date: Wed, 9 Feb 2011 12:30:14 -0800 (PST) Organization: http://groups.google.com Message-ID: <0957d7f6-8dd1-4f63-a060-a2bf2b7dd5d9@z27g2000prz.googlegroups.com> References: <5881e0b5-e97d-4ab4-8284-55882b034eab@o21g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297369625 5541 80.91.229.12 (10 Feb 2011 20:27:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Feb 2011 20:27:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 10 21:26:57 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 1Pnd6O-0000sr-Lv for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Feb 2011 21:26:56 +0100 Original-Received: from localhost ([127.0.0.1]:58641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnd6N-0004d9-TC for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Feb 2011 15:26:55 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!z27g2000prz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 24.21.176.10 Original-X-Trace: posting.google.com 1297283415 3199 127.0.0.1 (9 Feb 2011 20:30:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 9 Feb 2011 20:30:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z27g2000prz.googlegroups.com; posting-host=24.21.176.10; posting-account=tcr1oQoAAACn-Lg8dtrx6GwQKqxpY1_K User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.94 Safari/534.13, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:184883 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:79059 Archived-At: > 1.) Don't repeat in ~/.bash_profile what you've set in ~/.MacOSX/ > environment.plist! Better use cleverly: > > =A0 =A0 =A0 =A0 PATH=3D`defaults read "${HOME}/.MacOSX/environment" PATH` OK. Took care of that. The shell seems to be recognizing the correct PATH this time around. > 3.) In Emacs you can check its process environment by two means. In =A0 > *scratch* buffer you can execute this Lisp and similar code: > > =A0 =A0 =A0 =A0 (getenv "PATH") Checked this as well - it agrees with the PATH I established in the environment.plist file. > 4.) You can also invoke: > > =A0 =A0 =A0 =A0 M-x shell-command RET which RET > After invoking this in Emacs, it did indeed echo the correct path to the fsf-gdb executable. > 5.) What is GUD/GDB documentation telling you about the name of the =A0 > gdb executable? Is it fixed or is set to some value by a variable? =A0 > I've seen a > > =A0 =A0 =A0 =A0 (defcustom gud-gud-gdb-command-name "gdb --fullname" > > ... which could explain why a name "fsf-gdb" would never be found. > Yes, it does seem to be set to some variable. After reading the gdb documentation, when Emacs opens gdb as a sub-routine it apparently opens it with the option "-f", the fullname option. I am not sure how to change this behavior in Emacs. I think I am getting really close! Thanks, Dylan