From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 678 invoked by alias); 9 Oct 2014 16:23:17 -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 666 invoked by uid 89); 9 Oct 2014 16:23:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f175.google.com Received: from mail-vc0-f175.google.com (HELO mail-vc0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 09 Oct 2014 16:23:12 +0000 Received: by mail-vc0-f175.google.com with SMTP id id10so1248261vcb.20 for ; Thu, 09 Oct 2014 09:23:09 -0700 (PDT) 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=TcO3kcCX32QrDAl2EKlDH4STj5lNxG63dd2eoECKKbY=; b=E2gS3PG2U5/zP7jFAi2gfenr3tIURnP2l2L5OjyZanbBL4czsanMCuuIv7zTwmd+Vv yGlXokUzh6DjaQ4x1QgPKunyQmP04BrDJGHqmXWhLXMQ7e9ZVMAI+xMDrok7F6bBSBB+ tedmHf6S0DHwlxVOn9uYWyvkSw7hPT3UGFEuhIYOOlo62X+4Ni0rG1tKSaWIWgCtsbuP /lnCmjs8T2j7KpSWnqcSj23Wm6J2nN636Ms0yeRmshyNNMrTgBnAsirft6/EjizRJaM6 Ne/JmAyjiT4unMtsi8LwuV12O36P4EAtxdoExggQih5AppYqUz8h/rdrrB0DUhtSYWCI W4uw== X-Gm-Message-State: ALoCoQnU2ERMpd4GZP72ADlOcpxuYebg4qHk9t7MK1XT+WoQb9cVITfmjgp/k9EYV4rCndSgVDL0 MIME-Version: 1.0 X-Received: by 10.220.174.20 with SMTP id r20mr20406400vcz.11.1412871789428; Thu, 09 Oct 2014 09:23:09 -0700 (PDT) Received: by 10.52.181.65 with HTTP; Thu, 9 Oct 2014 09:23:09 -0700 (PDT) In-Reply-To: References: Date: Thu, 09 Oct 2014 16:23:00 -0000 Message-ID: Subject: Re: [PATCH][PR python/17364] Cleanup registration of __gdb_builtin_type_bound128 pretty-printer From: Doug Evans To: "Tedeschi, Walfred" Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00208.txt.bz2 On Mon, Oct 6, 2014 at 12:33 AM, Tedeschi, Walfred wrote: > Hi Doug, > > I have also submitted a patch for this last week. Though I was not creating a new directory for pretty printers. > https://sourceware.org/ml/gdb-patches/2014-09/msg00867.html > > I would like though to understand a bit more your comment on having x86 on the name of the register. What is the purpose of that? > (I could change it in case) Imagine a multi-arch gdb with several arches having bounds registers. How do we distinguish them in the pretty-printer namespace? > About registration of the pretty printer. We could do the following: > 1. Register an event listener for new obj_files. > 2. Query at every event the architecture of the inferior. (In case we had an event new_inferior loaded it would be cheaper.) > 3. In case of x86 or amd64 we can then register the pretty-printer for the bound registers. We could do something like that for 7.9 alright. At the moment it feels like a bit of overkill just for one pretty-printer. And for 7.8.1 I want to do something simple.