From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18236 invoked by alias); 4 Jan 2014 17:42:51 -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 18226 invoked by uid 89); 4 Jan 2014 17:42:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_40,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; Sat, 04 Jan 2014 17:42:49 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id AC9E91A64; Sat, 4 Jan 2014 18:42:45 +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 Ylg7fZsfwca0; Sat, 4 Jan 2014 18:42:45 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 53C2F1A60; Sat, 4 Jan 2014 18:42:45 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v1 02/36] Guile extension language: doc additions References: <52b9da59.64ab440a.0b0b.7e1c@mx.google.com> <83ha9w68av.fsf@gnu.org> <87sit4kb1t.fsf@gnu.org> <83eh4ow78t.fsf@gnu.org> <87k3egez8e.fsf@gnu.org> <83y52vvmga.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 =?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: Sat, 04 Jan 2014 17:42:00 -0000 In-Reply-To: <83y52vvmga.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2014 16:41:25 +0200") Message-ID: <87iotzd4ob.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/msg00030.txt.bz2 Eli Zaretskii skribis: >> From: ludo@gnu.org (Ludovic Court=C3=A8s) >> Cc: gdb-patches@sourceware.org >> Date: Sat, 04 Jan 2014 12:57:21 +0100 >>=20 >> > What about long double support? >>=20 >> Guile doesn=E2=80=99t support it out of the box. >>=20 >> If needed, it could easily be implemented as an extension: one would use >> a SMOB to wrap long doubles and pass them to Scheme, and possibly define >> methods for =E2=80=98+=E2=80=99, =E2=80=98-=E2=80=99, etc. for objects o= f this type. >>=20 >> Of course, this wouldn=E2=80=99t be terribly efficient, but that=E2=80= =99s not so >> important here I think; what matters is that it would allow =E2=80=98long >> double=E2=80=99 values to be passed around without loss of accuracy. >>=20 >> That said, my feeling is that leaving things as is (with long doubles >> cast to doubles) may prove to be sufficient for most practical uses of >> GDB. >>=20 >> WDYT? > > Well, GDB supports long double if the target does, so I thought it > would be a pity to lose that when working with Guile. We=E2=80=99re talking about =E2=80=98make-value=E2=80=99 here, which does a= llow users to create a =E2=80=98long double=E2=80=99 value, AIUI. What=E2=80=99s lost is that users can only inject in the debuggee values wi= th the accuracy of a =E2=80=98double=E2=80=99. This is a theoretical limitation, but I=E2=80=99m tempted to think that thi= s is rarely (if ever) a concern in practice. How do the Python bindings handle this? Thanks, Ludo=E2=80=99.