From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15388 invoked by alias); 7 Jan 2014 23:05:48 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15375 invoked by uid 89); 7 Jan 2014 23:05:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: hera.aquilenet.fr Received: from hera.aquilenet.fr (HELO hera.aquilenet.fr) (141.255.128.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Jan 2014 23:05:46 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E93F01A5C; Wed, 8 Jan 2014 00:05:43 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7j0VDKfwJJi2; Wed, 8 Jan 2014 00:05:43 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 90F09523; Wed, 8 Jan 2014 00:05:43 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Tom Tromey Cc: gdb-patches@sourceware.org, guile-user@gnu.org Subject: Re: [PATCH v2 02/13] script language API for GDB: extension.[ch] References: <52a7f3e8.e7ed440a.1c58.020f@mx.google.com> <87vbyffcwu.fsf@fleche.redhat.com> <87txdklqk4.fsf@gnu.org> <87r48kkc9g.fsf@fleche.redhat.com> <87eh4krl81.fsf@gnu.org> <87iotvixu4.fsf@fleche.redhat.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?utf-8?Q?Niv=C3=B4se?= an 222 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 07 Jan 2014 23:05:00 -0000 In-Reply-To: <87iotvixu4.fsf@fleche.redhat.com> (Tom Tromey's message of "Tue, 07 Jan 2014 09:02:59 -0700") Message-ID: <87vbxv8kag.fsf@gnu.org> User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-01/txt/msg00167.txt.bz2 Tom Tromey skribis: > Ludovic> Would it work, upon SIGINT, to do something like: > Ludovic> (system-async-mark (lambda () > Ludovic> (throw 'system-error ... EINTR))) > Ludovic> That would eventually raise an exception in Scheme code. > > According to the Guile docs one must use scm_sigaction, since > scm_system_async_mark is not async-signal-safe. Oh, right. This could be worked around by having a separate signal delivery thread (which is what Guile currently does internally), but that=E2=80=99s not so great. I guess this is another limitation of Guile=E2=80=99s current signal handli= ng strategy, and something we should fix. Ludo=E2=80=99.