From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by sourceware.org (Postfix) with ESMTPS id 5B5483939C12 for ; Wed, 17 Jun 2020 17:38:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5B5483939C12 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x342.google.com with SMTP id b82so2686123wmb.1 for ; Wed, 17 Jun 2020 10:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QqPME2auMx1hh/yBVsZhKtCSLotA9RbOU1Gra8NjFaU=; b=C/XqKRC5RCeZAqgWvlbxu9BGNaANl5RUHqm/PLwUh5D/635GYYOHfGGx9DFufCTMpE LBBRIigR5QREA4N3z8ARtMS1LX/a1EQKa9qQ6AZK1j4n+/97J4xKRe6ygUchj/yYGKcY zz9s5P+azuPoFcotnDD0q2gBje3PfKyJ/s0ONvteht19Gm1bfe039SJvOoP0oRvoB8Tg 0KgAMXup6pA0F7kfRGIPx9PMZ1xXn8Sg4GEqu/DHhTS2DBPh4VU3amHgKgC5nFuI7gQE +xd65htZcHzQyRe4bhweukyJCxjzm3avxjvtk2EPTW3/vBco1as9Nj/Z4SVGXY1eTQQp 5tgQ== 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=QqPME2auMx1hh/yBVsZhKtCSLotA9RbOU1Gra8NjFaU=; b=PMHkpmu3GADCmCjGXknlBwNeo8WktOcXA4P0GNoqeVcFDsLhfTDLTcXPCjT0Upu6KG Ixp5aKSFx6IoA6/6+WxGZzuuIxghGnKTLiQ9NrzA0Z8AJf17S+RjURrVl88sPP6j5D7Z XFRG/n87FUm9OCkPhW75IiRUPEvUtzpbWKFyzrkyPCOBiYqe0RpRYf7vZScDF9XPsO16 g9WPygehTL5KTDIc2z2WpgNUH/T3nMVzpQ5citTpdn9Yp9d7w40Lv8IK0al80rATuC90 S+6/dfo1KUsYe5SfNTnMHpXnCcNYjGuWWwu/5d7NAO3N09366X9+zBBORrbsqYs+0Hu+ 6FoQ== X-Gm-Message-State: AOAM533KqM6nQEwQP6VI5Q/Qvvn/3fNTLaxY98b2qY36fk4U4K0qi9Ac 84tR/6PIQCywnxwQFKIyiY+pTOkBcSY= X-Google-Smtp-Source: ABdhPJy05s8MCvGty5uOl4bJxOgoHbHLkfK+Wn0jg+lHw6gjhJLtMGc7xY1pvoaNHOFS1WYgtrx2LQ== X-Received: by 2002:a7b:c44a:: with SMTP id l10mr10076668wmi.92.1592415494215; Wed, 17 Jun 2020 10:38:14 -0700 (PDT) Received: from localhost (host86-128-12-16.range86-128.btcentralplus.com. [86.128.12.16]) by smtp.gmail.com with ESMTPSA id n7sm317265wrx.82.2020.06.17.10.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 10:38:13 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 0/5] Python Unwinders and Inline Frames Date: Wed, 17 Jun 2020 18:38:04 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 17:38:16 -0000 I ran into an issue with Python frame unwinders and inline frames. The fix for which is in patch #5 of this series. In order to write a test for patch #5 I needed some extra functionality from the Python API, which resulted in patches #2 - #4. And while writing patch #2 I noticed the cleanup that's in patch #1. Feedback welcome, Thanks, Andrew --- Andrew Burgess (5): gdb: Remove deprecated_set_gdbarch_data gdb/python: Add architecture method to gdb.PendingFrame gdb/python: Add gdb.Architecture.registers method gdb/python: New method to access list of register groups gdb: Fix Python unwinders and inline frames gdb/ChangeLog | 61 +++ gdb/Makefile.in | 1 + gdb/NEWS | 10 + gdb/doc/ChangeLog | 21 + gdb/doc/gdb.texinfo | 1 + gdb/doc/python.texi | 70 +++ gdb/findvar.c | 28 +- gdb/gdbarch.c | 22 +- gdb/gdbarch.h | 3 - gdb/gdbarch.sh | 25 +- gdb/ia64-libunwind-tdep.c | 15 +- gdb/python/py-arch.c | 45 ++ gdb/python/py-registers.c | 464 ++++++++++++++++++ gdb/python/py-unwind.c | 20 + gdb/python/python-internal.h | 6 + gdb/python/python.c | 1 + gdb/testsuite/ChangeLog | 19 + .../gdb.python/py-arch-reg-groups.exp | 87 ++++ .../gdb.python/py-arch-reg-names.exp | 87 ++++ gdb/testsuite/gdb.python/py-unwind-inline.c | 37 ++ gdb/testsuite/gdb.python/py-unwind-inline.exp | 49 ++ gdb/testsuite/gdb.python/py-unwind-inline.py | 71 +++ gdb/testsuite/gdb.python/py-unwind.py | 10 +- gdb/user-regs.c | 18 +- 24 files changed, 1097 insertions(+), 74 deletions(-) create mode 100644 gdb/python/py-registers.c create mode 100644 gdb/testsuite/gdb.python/py-arch-reg-groups.exp create mode 100644 gdb/testsuite/gdb.python/py-arch-reg-names.exp create mode 100644 gdb/testsuite/gdb.python/py-unwind-inline.c create mode 100644 gdb/testsuite/gdb.python/py-unwind-inline.exp create mode 100644 gdb/testsuite/gdb.python/py-unwind-inline.py -- 2.25.4