Message ID | 20210608151840.20917-1-patrickdepinguin@gmail.com |
---|---|
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=rLoY8cxH; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fzv5m0lj1z9sSn for <incoming-buildroot@patchwork.ozlabs.org>; Wed, 9 Jun 2021 01:18:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DC3F4402CB; Tue, 8 Jun 2021 15:18:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nFn-hfywMsvJ; Tue, 8 Jun 2021 15:18:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 2A13B40117; Tue, 8 Jun 2021 15:18:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 68E181BF867 for <buildroot@lists.busybox.net>; Tue, 8 Jun 2021 15:18:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5856F605E9 for <buildroot@lists.busybox.net>; Tue, 8 Jun 2021 15:18:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4IRGpqfj0Qez for <buildroot@lists.busybox.net>; Tue, 8 Jun 2021 15:18:45 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by smtp3.osuosl.org (Postfix) with ESMTPS id 1C5496059A for <buildroot@buildroot.org>; Tue, 8 Jun 2021 15:18:45 +0000 (UTC) Received: by mail-ed1-x52c.google.com with SMTP id cb9so24997251edb.1 for <buildroot@buildroot.org>; Tue, 08 Jun 2021 08:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XtpO6kDylf0O2NMht715X7AfKXtuunLvO0b7igyvxjs=; b=rLoY8cxHt+SrD14KU3BV7Sq9b1qoxxvNx7iW3sYFQP4d9XCgcwIsrR9MjIQZuRr/+2 u9Mt3YoiFjU5MEXGdxpY62HObJkly4haghyD4NKg2Dabl4TUmNEu89Q943dhhjUd4moj i9VjrG/PPUs+KNAFB5GVS+JMaN8qsggV9ERnSca7D78jeq30u7gt9xqZMNu1PQDGUOTS TMsy7Mpd0Fj3cTE4K//nZsC6ZbTfBq8DMMKvvyMGQNwdhDhT/y5AFYbzq2b3ttHN4fxe 8GrXJvodr2lYjvNlskgf4l92KvlGqangLnXnNwsqEHckETDj72OBOIWXTTQnRXUOauvv uMag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XtpO6kDylf0O2NMht715X7AfKXtuunLvO0b7igyvxjs=; b=p9OCYf789Mk18mkZlmfsWtgpFb5d6YSg7L3GqP1HjkMu65K5P5klvAv+EkbQSNB6ql WN+fTFeaSzBlPJR4GoPVFenJii1+s4SZHuluBw3qHDw8WHZdkhuDOmMzRivdErQUUnRZ 8T8MGNVuix2XETGpM2mpnOhLFgqIBBi4+uihhD1cMXQTZ546coje5DQOiukUjKMKZHyt lFcBU9N07OBpTGiiuCOVT7JQ7uosIAM9E2b5i/t4rN8r1WQgQToiOhvgwRZcYO55mpn9 JIp8mP43B83dMGiXOH2ue2vlqgs2tc3xp2wsKO9O/2seiTcH3DZb/gCA3o4bi6rpNlmK sZqw== X-Gm-Message-State: AOAM533gUqmX2FQMSgujDk7impmljX8R0F27b5qg1vKwp/+WcTHc8MFX F04qj5Ds9C3oVqWN2IxX45U8IOu+z9o4GGHR X-Google-Smtp-Source: ABdhPJxeZj7fa2LIiP36OmuTn+OUE0s1aT3iuJmuEOSLZfxpApbjy8otvfsgTfTyEC+6Wp0PWqPJrw== X-Received: by 2002:aa7:ce86:: with SMTP id y6mr2351069edv.309.1623165523035; Tue, 08 Jun 2021 08:18:43 -0700 (PDT) Received: from localhost (ptr-5gw9tx0z7f066xyxzn.18120a2.ip6.access.telenet.be. [2a02:1810:510:3800:124:6af2:167b:d993]) by smtp.gmail.com with ESMTPSA id dk12sm13514ejb.84.2021.06.08.08.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 08:18:42 -0700 (PDT) From: Thomas De Schampheleire <patrickdepinguin@gmail.com> To: buildroot@buildroot.org Date: Tue, 8 Jun 2021 17:18:36 +0200 Message-Id: <20210608151840.20917-1-patrickdepinguin@gmail.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCHv2 0/3] Fix gdb pretty printers for libstdcxx X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot/> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" <buildroot-bounces@busybox.net> |
Series | Fix gdb pretty printers for libstdcxx | expand |
From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Hello, This series fixes the gdb pretty printers for libstdcxx, provided by gcc. Patch 1 fixes a segfault in gdb 9.2 when Python 3 support is enabled. The fix is already present in gdb 10.1+. Patch 2 makes sure that the auto-load file provided by gcc for libstdcxx pretty-printers, is using valid paths, rather than the paths the external toolchain was built with. Finally, patch 3 makes sure that gdb will actually load the fixed auto-load file, by adding the buildroot sysroot as a 'safe path' in gdbinit. After this series, it suffices to start up gdb, load the buildroot-provided gdbinit file, and start debugging a binary. From the moment libstdcxx.so is loaded, gdb will automatically load the pretty-printer file. Printing C++ STL objects like std::map, std::vector, etc. will now be shown in the 'pretty' manner. In order to show the 'raw' object without pretty-printing, use the '/r' modifier to the 'print' command. Note: the pretty-printing logic is written in Python, so Python support for host-gdb needs to be enabled. Best regards, Thomas --- v2: - handle cases with more than one loadfile and more than one pythondir - make command silent with $(Q) Thomas De Schampheleire (3): package/gdb: fix gdb 9.2 segfault with Python 3.9 support toolchain/toolchain-external: fixup gdb pretty-printer loader for libstdcxx toolchain: mark sysroot as 'safe' path for gdb auto-load ...x-Python3.9-related-runtime-problems.patch | 227 ++++++++++++++++++ toolchain/helpers.mk | 3 +- .../pkg-toolchain-external.mk | 21 ++ 3 files changed, 250 insertions(+), 1 deletion(-) create mode 100644 package/gdb/9.2/0007-Fix-Python3.9-related-runtime-problems.patch