all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ken Raeburn <raeburn@raeburn.org>
Cc: tom@tromey.com, emacs-devel@gnu.org
Subject: Re: Debugging Emacs with threads
Date: Mon, 12 Dec 2016 19:38:00 +0200	[thread overview]
Message-ID: <837f75cakn.fsf@gnu.org> (raw)
In-Reply-To: <99B23C4A-3861-4995-BE61-317359FB2214@raeburn.org> (message from Ken Raeburn on Sun, 11 Dec 2016 22:18:16 -0500)

> From: Ken Raeburn <raeburn@raeburn.org>
> Date: Sun, 11 Dec 2016 22:18:16 -0500
> Cc: Tom Tromey <tom@tromey.com>,
>  emacs-devel@gnu.org
> 
> Perhaps a new thread-local variable which has the value of current_thread when the thread is the current Lisp thread.  Or we could invoke sys_thread_self() to compare against current_thread->thread_id; it’s not like xbacktrace works on a core file anyway.  (I’m assuming GDB will invoke a function or look at TLS in the context of the current OS thread, or the appropriate OS thread when invoked via something like “thread apply all bt”.)

Thanks, I will see if I can solve the problem that way.



      reply	other threads:[~2016-12-12 17:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-11 16:26 Debugging Emacs with threads Eli Zaretskii
2016-12-11 16:43 ` Andreas Schwab
2016-12-11 17:37   ` Eli Zaretskii
2016-12-11 18:04     ` Andreas Schwab
2016-12-11 18:12       ` Eli Zaretskii
2016-12-12  3:07   ` Ken Raeburn
2016-12-12  3:18 ` Ken Raeburn
2016-12-12 17:38   ` Eli Zaretskii [this message]

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=837f75cakn.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=raeburn@raeburn.org \
    --cc=tom@tromey.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 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.