unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Raimon Grau <raimon@konghq.com>
Cc: 31671@debbugs.gnu.org
Subject: bug#31671: 26.1; edebug-defun doesn't step if functions run in a separate thread
Date: Mon, 4 Jun 2018 10:23:58 -0700 (PDT)	[thread overview]
Message-ID: <b6ac5457-5353-4a73-9835-2c131d08398f@default> (raw)
In-Reply-To: <<83r2lmbidf.fsf@gnu.org>>

> The problem here is that Edebug enters recursive-editing (on the
> non-main thread which runs the function 'foo'), then waits for the
> user to press a key.  While it waits, it releases the global lock, and
> the main thread starts running.  So when you press a key, you are on a
> different thread, and 'throw' doesn't have a matching 'catch' (because
> that 'catch' is stored with the handlers of the thread which runs
> 'foo'.
> 
> Not yet sure how to deal with this.  Thoughts and ideas are welcome.

Not really following this thread, and 100% unknowledgable
about Emacs threading.  But somewhat curious: Does the same
problem exist for plain `debug' as for `edebug'?





       reply	other threads:[~2018-06-04 17:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<87muwfsp4i.fsf@konghq.com>
     [not found] ` <<83r2lmbidf.fsf@gnu.org>
2018-06-04 17:23   ` Drew Adams [this message]
2018-06-05 14:47     ` bug#31671: 26.1; edebug-defun doesn't step if functions run in a separate thread Eli Zaretskii
2018-05-31 17:37 Raimon Grau
2018-06-04 16:56 ` Eli Zaretskii
2018-06-05 14:51   ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=b6ac5457-5353-4a73-9835-2c131d08398f@default \
    --to=drew.adams@oracle.com \
    --cc=31671@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=raimon@konghq.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).