From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13943 invoked by alias); 18 Feb 2014 17:46:05 -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 13932 invoked by uid 89); 18 Feb 2014 17:46:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=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, 18 Feb 2014 17:45:59 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3FBC51CFD; Tue, 18 Feb 2014 18:45:57 +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 PudVMI4A8stS; Tue, 18 Feb 2014 18:45:57 +0100 (CET) Received: from pluto (LDijon-156-64-49-137.w217-128.abo.wanadoo.fr [217.128.51.137]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 4AB331C9C; Tue, 18 Feb 2014 18:45:55 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Eli Zaretskii Cc: xdje42@gmail.com, gdb-patches@sourceware.org, guile-devel@gnu.org Subject: Re: [PATCH v2] Improved ^c support for gdb/guile References: <834n3x8o7m.fsf@gnu.org> <83y519788a.fsf@gnu.org> <871tz0d5vc.fsf@gnu.org> <83iosc76kz.fsf@gnu.org> <87txbw9xp4.fsf@gnu.org> <83a9do741d.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?utf-8?Q?Pluvi=C3=B4se?= an 222 de la =?utf-8?Q?R=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, 18 Feb 2014 17:46:00 -0000 In-Reply-To: <83a9do741d.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 Feb 2014 18:56:46 +0200") Message-ID: <87ha7w71ri.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-02/txt/msg00572.txt.bz2 Eli Zaretskii skribis: >> From: ludo@gnu.org (Ludovic Court=C3=A8s) >> Cc: xdje42@gmail.com, gdb-patches@sourceware.org, guile-devel@gnu.org >> Date: Tue, 18 Feb 2014 17:45:27 +0100 [...] >> >> The non-pthread code is used when Guile is built without pthread >> >> support. In that case, the async is queued directly from the signal >> >> handler. >> > >> > So why cannot this code be used by GDB? >>=20 >> Because GDB uses whichever Guile is available. If the user has Guile >> built with pthread support, then that=E2=80=99s what GDB uses. > > Sorry, I meant why that code couldn't be used when Guile was built > without pthreads. Because with the patch Doug posted, both the SIGINT thread and GDB=E2=80=99s main thread would call libguile. A different strategy would need to be used when Guile lacks pthread support. Ludo=E2=80=99.