From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120537 invoked by alias); 30 May 2019 17:01:50 -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 120516 invoked by uid 89); 30 May 2019 17:01:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.9 required=5.0 tests=AWL,BAYES_00,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1418 X-HELO: mail-ot1-f68.google.com Received: from mail-ot1-f68.google.com (HELO mail-ot1-f68.google.com) (209.85.210.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 May 2019 17:01:48 +0000 Received: by mail-ot1-f68.google.com with SMTP id t24so6285139otl.12 for ; Thu, 30 May 2019 10:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1RDvgjfVrxrb4oc5MPjbTa+hi9rRh5QUg3K+9Dh5Fs4=; b=PM0lHm7u9xPk0/37MC5we37yHCQD2k4PF5UQ6YKS8yJ9Z3okrUuHa2pfEeqRWmZJKl iGk98osvv5JmQHGtd2zNfCsTLtMB2ND01vuvJ2IgKT75zItPUNa8UjIPKXnnMiJ/Gxlg Ek0BkK2VeresX0TQihm/5Q/lyEWAyVRYEpRvU7AbLqBCuQclfCFNZ7JtGx9gluyCb8zR Yey27bG14Jkl7ellrEdJ608M43d+NZC06Ug5RwJjv+Q1gVYcx4d1PgVuhtAqLW4Vi+oQ 5B288PzEfujayIk6XcY5ifiKVj398OJU97XBLIsNMn1Qkf+i89rRMicNWCn+tfR8y9/7 Fk9Q== MIME-Version: 1.0 References: <20190523203227.260432-1-cbiesinger@google.com> <20190523213729.27928-1-cbiesinger@google.com> <87k1ea5j2i.fsf@tromey.com> In-Reply-To: <87k1ea5j2i.fsf@tromey.com> From: "Christian Biesinger via gdb-patches" Reply-To: Christian Biesinger Date: Thu, 30 May 2019 17:01:00 -0000 Message-ID: Subject: Re: [PATCH] Add an objfile getter to gdb.Type To: Tom Tromey Cc: Christian Biesinger via gdb-patches Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-05/txt/msg00706.txt.bz2 On Tue, May 28, 2019 at 5:07 PM Tom Tromey wrote: > >>>>> "Christian" == Christian Biesinger via gdb-patches writes: > Christian> This allows users of the Python API to find the objfile where a type > Christian> was defined. > > Could you say what your motivation is for adding this? > > The reason I ask is that I still harbor some hopes that we can complete > the "objfile splitting" project, and if so, then it wouldn't be possible > to associate a type with a single objfile. > > I suppose maybe we could make the Python wrappers per-objfile. So, this > patch maybe wouldn't necessarily limit this. I'm not sure what the objfile splitting this is about, but the motivation is as follows. I want to use this API for better supporting a project called JsDbg, which is basically (for the purpose of this question) a data structure visualizer for multiple debuggers (https://github.com/MicrosoftEdge/JsDbg/blob/master/docs/FEATURES.md). I would like access to the objfile (really I just care about the name of the shared library/executable) to disambiguate typenames that may be the same in different solibs. I know that this doesn't handle the case where the different solibs are all loaded in the same process, but that should be ok. Does that sound reasonable? Christian > > The patch itself looks fine to me. > > Tom