From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A46D838582AD for ; Fri, 5 Jan 2024 11:48:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A46D838582AD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A46D838582AD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704455326; cv=none; b=dKEKCl8cbOW0ZjvcujhVd8YeJdpUUzNKPWAp5v3uj7Mg0KSK223nvu+fXLXAonTqqSwJFvOmOrwzPeRDRRQwj8XI5lOh4DAa8opMU1a5UQTNYlKbQg2CV6l68usalWBlI40wT43ni6X6NQvFx66eaX1x6bHZOKsl75Ybk8LQNj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704455326; c=relaxed/simple; bh=gdXacUd/Rid8ugUcWbLUwFYdbCE/x7gGIWdhQn89f7s=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=S/wsT3Nd/752TbB58j0HZl7r4ECYOt48N4mk72bcrDe9CunCywAB2wz+l1D9fkThzI8a2jM0uDSoS9XEsNvGjo5nPvJwYBKibZC+yRNDFoK0n2nGxR13ovGW/TgrW13kTQidZCUGBf2OfR2EucnCp6x4JK2WSKeFfIXxycGxTag= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704455322; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DhzE1zqLZtcwXfXCIx4PDYIDDwB4dQiFBoY++LVhnLk=; b=MIM2N/tcltYBGv6hCt/Vyop8WEUVU0wgdv9+n6HZ6tWCZYsZcHrum7TOds5PWL6yTuw0Me 5Kxx7C1EH/qvBdzVBWotbRJUOWupNE3Fr9mquUohvKB7d86hQvwsqh9cG6qqv8OCyKJawV ZbOenGJ9LdIRUchYhGUgZZa0tIXCMEA= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-623-0P9TdwQCNneO2ozGG4f7oA-1; Fri, 05 Jan 2024 06:48:40 -0500 X-MC-Unique: 0P9TdwQCNneO2ozGG4f7oA-1 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-55671ac849aso708707a12.2 for ; Fri, 05 Jan 2024 03:48:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704455319; x=1705060119; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DhzE1zqLZtcwXfXCIx4PDYIDDwB4dQiFBoY++LVhnLk=; b=R8oa6gIpcjNnqUd8i2qKV3y/m7387T5FarIqTQGshpJz6Gfl/nAT9E47f0+OpVvoQz w804HC69gBqvkCplpWFG97VeMd/uLbTX5HnWL818FDis6ss78Bif1lTI4itXauj23647 3zd3X0Y675nAFl7uQRDGkYcvZkhsWrFlvSNo7ztyTzQKD0Mm9D0HHMXIOf5I1FMRXd0+ Qt9ZVK6MbPNH3kyuzhYh2q0CHgS1j9EQ4gxd5QpLQbvvkeHAA0GXJnTblIMEJjjsQ5oO 1YbNmRRw5rWJfJ+26ixf2mem/MOuHVCCFO2TG03zUlPe4s0oqBA9d015sGJOK/8TyZCB EW5w== X-Gm-Message-State: AOJu0YxfbIQO0/RpB0d5QBd7GkCHUBDfh6wfH9cZM6PGtLuz0LFc2SeS yYpXTl5HzmN5e7EuMOyNvLqdRLjN5z+FX5sWVlCcx+e7DoORsiay+Bcs4d4wsjUpO78u/Jo26VB 3gjt92M3UX9Y5q48EQyG5ChxtW2lwbPWBKmifYyNfBZVLg4zdBDgVWGawWgL0z/b/WSG9A0Us9m iQwAMEtKemPXYp7w== X-Received: by 2002:aa7:c606:0:b0:556:4153:e4b3 with SMTP id h6-20020aa7c606000000b005564153e4b3mr618706edq.156.1704455319000; Fri, 05 Jan 2024 03:48:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHo7U+Ydq5qsMeMGwdoBtCHqNk89GA1VDo7P/fXTJW/5t2etKZpZVUpINDXb6QZfsYqHVCpWQ== X-Received: by 2002:aa7:c606:0:b0:556:4153:e4b3 with SMTP id h6-20020aa7c606000000b005564153e4b3mr618701edq.156.1704455318710; Fri, 05 Jan 2024 03:48:38 -0800 (PST) Received: from localhost (185.223.159.143.dyn.plus.net. [143.159.223.185]) by smtp.gmail.com with ESMTPSA id n7-20020a50cc47000000b00555fd008741sm866842edi.95.2024.01.05.03.48.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 03:48:38 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/6] Python __repr__() methods and new __dict__ attributes Date: Fri, 5 Jan 2024 11:48:29 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This series is a bit of a mixed bag of Python API related changes. Patches #2 and #3 do depend on #1, but #4, #5, and #6 are really quite separate. However, they're all pretty small, and are all just extending existing functionality to cover more cases, so I've thrown them all in together for now. --- Andrew Burgess (6): gdb/python: hoist common invalid object repr code into py-utils.c gdb/python: add gdb.InferiorThread.__repr__() method gdb/python: add gdb.Frame.__repr__() method gdb/python: remove users ability to create gdb.Progspace objects gdb/python: Add gdb.Inferior.__dict__ attribute gdb/python: Add gdb.InferiorThread.__dict__ attribute gdb/NEWS | 13 +++++ gdb/doc/python.texi | 63 +++++++++++++++++++++++ gdb/python/py-arch.c | 2 +- gdb/python/py-block.c | 2 +- gdb/python/py-breakpoint.c | 4 +- gdb/python/py-connection.c | 2 +- gdb/python/py-frame.c | 19 ++++++- gdb/python/py-inferior.c | 15 +++++- gdb/python/py-infthread.c | 36 +++++++++++-- gdb/python/py-objfile.c | 2 +- gdb/python/py-progspace.c | 16 +----- gdb/python/py-symbol.c | 2 +- gdb/python/py-type.c | 3 +- gdb/python/py-unwind.c | 2 +- gdb/python/py-utils.c | 8 +++ gdb/python/python-internal.h | 13 +++++ gdb/testsuite/gdb.python/py-frame.exp | 8 +++ gdb/testsuite/gdb.python/py-inferior.exp | 52 ++++++++++++++++++- gdb/testsuite/gdb.python/py-infthread.exp | 3 +- gdb/testsuite/gdb.python/py-progspace.exp | 6 +++ 20 files changed, 238 insertions(+), 33 deletions(-) base-commit: b7a5722ebdd24a0d15d56e96d30a649ea1d7b0ee -- 2.25.4