Message ID | 20210608130644.10909-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.138; helo=smtp1.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=o2JRX56c; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 4Fzr9Y0cxvz9sPf for <incoming-buildroot@patchwork.ozlabs.org>; Tue, 8 Jun 2021 23:06:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E810583BD3; Tue, 8 Jun 2021 13:06:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1exK7WwJiaNc; Tue, 8 Jun 2021 13:06:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id DE21783BD5; Tue, 8 Jun 2021 13:06:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id F0FD21BF3FC for <buildroot@lists.busybox.net>; Tue, 8 Jun 2021 13:06:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E0692400E7 for <buildroot@lists.busybox.net>; Tue, 8 Jun 2021 13:06:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 WLMV-njZfVkR for <buildroot@lists.busybox.net>; Tue, 8 Jun 2021 13:06:49 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by smtp2.osuosl.org (Postfix) with ESMTPS id D5F8A400C8 for <buildroot@buildroot.org>; Tue, 8 Jun 2021 13:06:48 +0000 (UTC) Received: by mail-ej1-x62c.google.com with SMTP id c10so32476872eja.11 for <buildroot@buildroot.org>; Tue, 08 Jun 2021 06:06:48 -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=+yK1gvjf2Pi/fCR1nhEy8sJzK1C501RoW2Xiub5CV4w=; b=o2JRX56c3VKfpduo3csDvI95/jnA1hnFPoJN6vVGgIwAIArr8eDD+lVf5XmXiofRHb guc38XB7rPj2AhCMg2BQDkYy+v57C5pLOcAeZJaSQKYprNDmtnV90ZaO7GgpzqNnDmYY oSW6fK9wFT/scOgJGPy5VPVpEj0e7hE4eUS3rg+Vr9VHcqGAcxYqr5Pyzj5w6LZxrq9U 2qHodOLlo30pf7ppNUVtXjTjNYGP8ZjRDLkCuZH+eNk0B//GO2hUMJ+Ph/5bPAJTc2Xd SMo+BLMNq4xiYMnOvGOPiD92TwIYMEtDox9DK8aYavxCViwPEX19ueg5xu1AIf9zdTCS mLdw== 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=+yK1gvjf2Pi/fCR1nhEy8sJzK1C501RoW2Xiub5CV4w=; b=V7g/Re6JX9EjgdIhNo8nUqqpVfjqqEhUxEV+kD5gWarMTuutV1JV75T2pB7SaaKGgV lKDzNdaSwA9AQq07S/Qr71vcaK3trCQHyIRnd5hipw87El6uVtaoTLamtrovvxLeOFsp XbK/PkO0IX6FuoAy4SqnJ/PU7dp9Ir2grjQba9FVbUDeU5RBONyyOgB/h9o9Pf9YxJuL tLTn0lxXSyqwVE1bC+keT5vXwbR710DJQWgVmh4pnsyPhy1HgPkvvJ5NIFhqrmJ3HYgM DklPWIHo/my20Gfl3SfUyhhUVrCiR/qoo/j0dvuKF7UQBRWwG1yAe4Mid9cNf2onzKj1 G0Qw== X-Gm-Message-State: AOAM533gupsbHwC1nSOXShysAiDtNtx7eSWV1osapFSJDVMqboSDrU3f kt0bJgymx9UAzrbUY16//PUfiE5Uag0KWJxD X-Google-Smtp-Source: ABdhPJxihG0Rf8nQZpqVpLZ7T8UNbEtmLpn2GOwITfIpzSa8uAQgSgaIysK4kCJ+v1ceeYDCjnD65g== X-Received: by 2002:a17:906:3888:: with SMTP id q8mr23105158ejd.15.1623157606875; Tue, 08 Jun 2021 06:06:46 -0700 (PDT) Received: from localhost (ptr-5gw9tzn82s1glqex1i.18120a2.ip6.access.telenet.be. [2a02:1810:510:3800:ad4b:62a2:fdc7:acc6]) by smtp.gmail.com with ESMTPSA id o20sm8728552eds.20.2021.06.08.06.06.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 06:06:46 -0700 (PDT) From: Thomas De Schampheleire <patrickdepinguin@gmail.com> To: buildroot@buildroot.org Date: Tue, 8 Jun 2021 15:06:40 +0200 Message-Id: <20210608130644.10909-1-patrickdepinguin@gmail.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 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 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