From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CKQnFqlMMmEyEwAAWB0awg (envelope-from ) for ; Fri, 03 Sep 2021 12:26:17 -0400 Received: by simark.ca (Postfix, from userid 112) id 478301EE22; Fri, 3 Sep 2021 12:26:17 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A05921EDDB for ; Fri, 3 Sep 2021 12:26:16 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 349703847802 for ; Fri, 3 Sep 2021 16:26:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 349703847802 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1630686376; bh=D3w4binBkdYteNrkhwHF97Xtg+AiF7yAk2W35l2H5+s=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sNbYEPqvhXl77itDSQw1OW7ukRkJDKmUQ4U52rqD2jiStMCxJYQfaWULi2TuLKhTO vO5ClsXVxSvpJxybVsmYdOvIoKBdtHiweTg1nQpv8KGpqVqGyH4xabMqPiTMlV6h7S OpBWl6Ps+HfNi2m8yWOL8eNCUVx856LxEhwcgDJw= Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by sourceware.org (Postfix) with ESMTPS id 081D8384B13A for ; Fri, 3 Sep 2021 16:25:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 081D8384B13A Received: by mail-qk1-x732.google.com with SMTP id y144so6349233qkb.6 for ; Fri, 03 Sep 2021 09:25:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D3w4binBkdYteNrkhwHF97Xtg+AiF7yAk2W35l2H5+s=; b=tm+FwQoR21oDXZghGl3s8dcInYYHLjZSfle/wEc3xelhoH8P3wGTCS64ruk1Hbqc2B fEiArcdEQ/aeotDsjMSfAS7dAVnvlMbXFxE+vJDbcFmmdJsKcwtkbTTmU6s+5b9QKyEZ o0naEh0gs3HDpfA+ALYQVPwiwnE+6BsStQ2znLVR1lVQqG+YQbG8VNys6dDJ1V3PADlv tkHyzXPVPkH2MjZnv86pX2YSbLBCsCbUQ9JkBdulWDp3R1VaH0jDO59plJD3DCBMtbN9 NVxgz+x2SCcAZE8lJe7q5F1mmX3n+DMOnecE7KgXQm3eo+jloW7knBDbuuk92Ry0K4Z1 FwhA== X-Gm-Message-State: AOAM533QdHHYY6YIrV+EnGdpVxbphoVNws+RiIYQLqonqkCmxVHgMAEz Nm7dWSqMD7FifGg/OjVWOW7YkzuFf5o6XjXb4etAo+nar8Halw== X-Google-Smtp-Source: ABdhPJyjfsDlnYfmDeEu2NA/WO2Uinimo/qxgIXKwGAojxV9mS/kZQUX/2TIpdC1AVlm4IRLkaTp7KBQ5rHYJyiuRIs= X-Received: by 2002:a37:d4c:: with SMTP id 73mr4227824qkn.188.1630686350484; Fri, 03 Sep 2021 09:25:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 Sep 2021 12:25:13 -0400 Message-ID: Subject: Re: Disambiguating symbols by module To: Alexander Miloslavskiy Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Biesinger via Gdb Reply-To: Christian Biesinger Cc: Reuben Thomas via Gdb Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Thu, Sep 2, 2021 at 4:49 PM Alexander Miloslavskiy via Gdb wrote: > Here, the symbol I want is a non-debugging symbol. This also means that > I can't disambiguate it by the source file name. > > Is there a syntax to disambiguate the symbol? The python API lets you do this: gdb.lookup_objfile("libfoo").lookup_global_symbol("ps") But I don't recall if you can call functions in the inferior from Python. Christian