all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Dylan <crazy808s@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3)
Date: Wed, 9 Feb 2011 10:53:34 +0100	[thread overview]
Message-ID: <DE9D60B0-3E25-4117-907A-0C89CFB18855@Web.DE> (raw)
In-Reply-To: <5881e0b5-e97d-4ab4-8284-55882b034eab@o21g2000prn.googlegroups.com>


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




  reply	other threads:[~2011-02-09  9:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04 21:37 gdb hangs in Emacs 23.2.1 (Mac OSX 10.6.3) Dylan
2011-02-05 10:24 ` Peter Dyballa
     [not found] ` <mailman.2.1296901461.7938.help-gnu-emacs@gnu.org>
2011-02-07 19:28   ` Dylan
2011-02-07 23:10     ` Peter Dyballa
     [not found]     ` <mailman.4.1297120219.8034.help-gnu-emacs@gnu.org>
2011-02-09  0:48       ` Dylan
2011-02-09  9:53         ` Peter Dyballa [this message]
     [not found]         ` <mailman.0.1297245224.21406.help-gnu-emacs@gnu.org>
2011-02-09 20:30           ` Dylan
2011-02-10 23:26             ` Peter Dyballa
2011-02-11 13:55             ` Peter Dyballa
     [not found]             ` <mailman.0.1297381915.13481.help-gnu-emacs@gnu.org>
2011-02-11 20:11               ` Dylan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DE9D60B0-3E25-4117-907A-0C89CFB18855@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=crazy808s@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.