From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31430 invoked by alias); 21 Dec 2017 18:20:53 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 31368 invoked by uid 89); 21 Dec 2017 18:20:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:sk:gdb@sou, H*c:alternative X-HELO: mail-wr0-f179.google.com Received: from mail-wr0-f179.google.com (HELO mail-wr0-f179.google.com) (209.85.128.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Dec 2017 18:20:51 +0000 Received: by mail-wr0-f179.google.com with SMTP id h1so25884591wre.12 for ; Thu, 21 Dec 2017 10:20:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DviwgrMfwER0De4VbvTV2F7pZ/hKylP3x9V3yzlzwZk=; b=gj2ZkoGzQHVBlbLAgTuikOzRqXWDzgiPgasoUa3By5eLycotr4M2cRTfjKIe7yShBL zymaP6d1mOashVdNuNjCk1otonSwE7p5iWOdtVYf8d4U3oazMtIa+Hf/86hHr/E07VAQ AGkT18Te2r48jJvPSoLQ1qRVNkf+6rYl6N/ltFdx2eRPlHFbqLhjLI5VbjtnuCyljO/4 sIShcuJt/zU0O0cRPqwe8boH/4UbWCM/v09vX50Bbtu6EngJxxFXzzyD1K/IeNzRHxv8 CyK/C7gYJoVQLOU2b88oXChe8k5PDr3Ofer414kwyiNbdQPlfmvA77oiHZF+WOSzwl/R 8xiA== X-Gm-Message-State: AKGB3mL3zfG8AEAY0NqqBo831+C1gX2kspsQINiI3f80fubYAvE+oyVV 6r5srufx88bZd/h2JLeHtF5k5lQLbhFE8BvL4GHlFg== X-Google-Smtp-Source: ACJfBoueOQy6GsoChA9zjs3mPjLUubTVikjvakZZ7SIQPJCl1Ht2nsEq9ZQbRxy4+SRoQMiJsi+daRZAcK6PeVBZeUQ= X-Received: by 10.223.139.73 with SMTP id v9mr12991158wra.77.1513880448879; Thu, 21 Dec 2017 10:20:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.196.196 with HTTP; Thu, 21 Dec 2017 10:20:48 -0800 (PST) From: Roman Popov Date: Thu, 21 Dec 2017 18:20:00 -0000 Message-ID: Subject: Python API: Getting symbol by address To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00013.txt.bz2 Hello, I have collection in C++ that stores pointers to functions and methods. I want to pretty-print pointed method and functions names. It is possible using GDB shell, for example: (gdb) info symbol 0x405ece top::test_thread() in section .text of test_procs However I found no way to do the same using Python API. Why such limitation? P/S Same question on stackoverflow : https://stackoverflow.com/questions/47916564/gdb-python-api-getting-symbol-name-from-address Thanks, Roman