all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: Abort when creating frame
Date: Tue, 06 Sep 2011 19:57:18 +0300	[thread overview]
Message-ID: <83bouxk3rl.fsf@gnu.org> (raw)
In-Reply-To: <4E6610C1.8060205@gmx.at>

> Date: Tue, 06 Sep 2011 14:23:29 +0200
> From: martin rudalics <rudalics@gmx.at>
> Cc: emacs-devel@gnu.org
> 
> I now know what happens but don't understand why.  I'm running the
> debugger from an older emacs and `insert-file-contents' loads
> uni-mirrored.el from the directory of _that_ emacs.  This also
> explains why I see the abort only when running under gdb.  If I run
> gdb from the new emacs, the debugged emacs starts as expected.

This is a feature ;-)  You will see in w32.c that Emacs sets
EMACSLOADPATH in the environment to the path it creates from known
directories, in order to set load-path correctly.  And GDB probably
inherits that exports it to the Emacs being debugged...

We define EMACSLOADPATH in the environment because the Windows build
doesn't want to depend on PATH_LOADSEARCH macro being set at build
time (in epaths.h), since the compiled binary needs to be able to run
on a different machine.  See init_lread.

Perhaps we should remove EMACSLOADPATH from process-environment when
we run inferior subprocesses?



  parent reply	other threads:[~2011-09-06 16:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-05 16:47 Abort when creating frame martin rudalics
2011-09-05 17:22 ` Eli Zaretskii
2011-09-05 17:32   ` Eli Zaretskii
2011-09-05 17:57     ` martin rudalics
2011-09-05 19:29       ` Eli Zaretskii
2011-09-05 20:07         ` Eli Zaretskii
2011-09-05 20:26         ` martin rudalics
2011-09-06  2:52           ` Eli Zaretskii
2011-09-06  6:57             ` martin rudalics
2011-09-06  7:09               ` Eli Zaretskii
2011-09-06  9:22                 ` martin rudalics
2011-09-06  9:48                   ` Eli Zaretskii
2011-09-06 12:23                     ` martin rudalics
2011-09-06 12:30                       ` martin rudalics
2011-09-06 16:57                       ` Eli Zaretskii [this message]
2011-09-06 18:44                         ` martin rudalics
2011-09-07 16:50                           ` Eli Zaretskii
2011-09-07 18:30                             ` martin rudalics
2011-09-07 18:54                               ` Eli Zaretskii

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=83bouxk3rl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.