From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4215 invoked by alias); 9 Nov 2013 20:33:39 -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 4203 invoked by uid 89); 9 Nov 2013 20:33:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_05,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-wg0-f50.google.com Received: from Unknown (HELO mail-wg0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 09 Nov 2013 20:33:37 +0000 Received: by mail-wg0-f50.google.com with SMTP id k14so1620451wgh.29 for ; Sat, 09 Nov 2013 12:33:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=2ANkheqh2ZThQDtYnIi546BIx+W6VpeoI6LEqXkb+lE=; b=U/9rNgYfVwU1GdvZWJazS1HEVOq6NIUEJmlSuDgWREQMWfjs/4BGcmCJDbmoer9n+1 XjAqWcveKSiu/O8K229e5SQplxYQVgRgvlnoVBMqxl87vitUf+jOTFvivTeC0kLEbVcG 70+6mvUMzBksdKO82+/lQ9pUyN6YVs2OM0GRRwNbHSecpi+Py9W3NNrtf6ei25FXJf2n blCgjklz+rtogMOwnIJG+UJsRY2mP/N6HBmcTcacZn1YzeRYdJhN7Uvx+0jRx+TRm2lL dZJG0uIpnP8FZXnGtcmRyjAyRQws1OU5JeKKwY3m00dtJ439ota/4eLjGQinzoRKbeb8 JzjQ== X-Gm-Message-State: ALoCoQm9U7aOCjamg06FmBoqKM69ZQYE2gBtbhQFV9TBW4iF3Zv2FMAM9gJkHtueFFsbkuNHVBE7 MIME-Version: 1.0 X-Received: by 10.180.14.226 with SMTP id s2mr6846173wic.41.1384029208284; Sat, 09 Nov 2013 12:33:28 -0800 (PST) Received: by 10.216.73.198 with HTTP; Sat, 9 Nov 2013 12:33:28 -0800 (PST) In-Reply-To: References: <87ob5vlr2s.fsf@gnu.org> Date: Sun, 10 Nov 2013 06:26:00 -0000 Message-ID: Subject: Re: guile scripting for gdb From: Doug Evans To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Cc: guile-user@gnu.org, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-11/txt/msg00262.txt.bz2 On Sat, Nov 9, 2013 at 10:40 AM, Doug Evans wrote: >> As discussed on IRC, one possible issue is eq?-ness of SMOBs: one would >> usually expects pointer equality to be preserved at the Scheme level. > > Yeah. > That'll require gdb maintaining its own table(s) for each kind of smob > we want to intern. Actually, to be more precise, it will require maintaining tables for *some* smobs we want to intern. For other smobs the cost of caching the SCM in the gdb object isn't onerous. [The object is marked as protected from GC until the gdb object is deleted.] Alas, for two of the more important smobs we'd want to eq?, I think, gdb symbols and types, we'll need separate tables. Minimizing space usage of their gdb structs is important (critical even), and only a small fraction of them will typically be used in Scheme. And we certainly don't want to pay that expense when Scheme isn't used.