From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Pedro Alves <pedro@palves.net>
Subject: [PATCH v4 0/6] Fix some Python Inferior methods
Date: Fri, 14 Jul 2023 11:06:24 -0600 [thread overview]
Message-ID: <20230714-py-inf-fixes-30615-v4-0-9189744d8547@adacore.com> (raw)
A user pointed out a bug in Inferior.search_memory. This series is
the result. Most of the patches are minor things I noticed while
working on the final patch, which fixes the bug.
Regression tested on x86-64 Fedora 36.
---
Changes in v4:
- Addressed review comments: test case output checking
- Link to v3: https://inbox.sourceware.org/gdb-patches/20230713-py-inf-fixes-30615-v3-0-26a024f30553@adacore.com
Changes in v3:
- Added some comments to the final patch
- Link to v2: https://inbox.sourceware.org/gdb-patches/20230711-py-inf-fixes-30615-v2-0-64a2540864e6@adacore.com
Changes in v2:
- Addressed review comments
- Added scoped_restore_current_inferior_for_memory patch
- Link to v1: https://inbox.sourceware.org/gdb-patches/20230707-py-inf-fixes-30615-v1-0-7792ab559530@adacore.com
---
Tom Tromey (6):
Minor cleanups in py-inferior.exp
Refactor py-inferior.exp
Rename Python variable in py-inferior.exp
Remove obsolete comment from gdbthread.h
Introduce scoped_restore_current_inferior_for_memory
Use correct inferior in Inferior.read_memory et al
gdb/aix-thread.c | 18 ++-----
gdb/gdbthread.h | 2 +-
gdb/inferior.h | 29 +++++++++++
gdb/proc-service.c | 10 +---
gdb/python/py-inferior.c | 43 +++++++++++++---
gdb/testsuite/gdb.python/py-inferior.exp | 84 ++++++++++++++++++++++++--------
6 files changed, 135 insertions(+), 51 deletions(-)
---
base-commit: 23e46b680f6fa6fce45aaf6c004cab6be322fbf1
change-id: 20230707-py-inf-fixes-30615-668ef09475ab
Best regards,
--
Tom Tromey <tromey@adacore.com>
next reply other threads:[~2023-07-14 17:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 17:06 Tom Tromey [this message]
2023-07-14 17:06 ` [PATCH v4 1/6] Minor cleanups in py-inferior.exp Tom Tromey
2023-07-14 17:06 ` [PATCH v4 2/6] Refactor py-inferior.exp Tom Tromey
2023-07-14 17:06 ` [PATCH v4 3/6] Rename Python variable in py-inferior.exp Tom Tromey
2023-07-14 17:06 ` [PATCH v4 4/6] Remove obsolete comment from gdbthread.h Tom Tromey
2023-07-14 17:06 ` [PATCH v4 5/6] Introduce scoped_restore_current_inferior_for_memory Tom Tromey
2023-07-14 17:06 ` [PATCH v4 6/6] Use correct inferior in Inferior.read_memory et al Tom Tromey
2023-07-15 13:31 ` Andrew Burgess
2023-07-17 17:12 ` Tom Tromey
2023-07-17 18:15 ` Pedro Alves
2023-07-17 18:44 ` Tom Tromey
2023-07-18 12:20 ` [PATCH] Fix gdb.Inferior.read_memory without execution (PR dap/30644) (was: Re: [PATCH v4 6/6] Use correct inferior in Inferior.read_memory et al) Pedro Alves
2023-07-18 17:25 ` [PATCH] Fix gdb.Inferior.read_memory without execution (PR dap/30644) Tom Tromey
2023-07-19 13:14 ` Pedro Alves
2023-07-18 8:48 ` [PATCH v4 6/6] Use correct inferior in Inferior.read_memory et al Aktemur, Tankut Baris
2023-07-18 12:26 ` Pedro Alves
2023-07-18 13:19 ` Aktemur, Tankut Baris
2023-07-14 18:09 ` [PATCH v4 0/6] Fix some Python Inferior methods Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230714-py-inf-fixes-30615-v4-0-9189744d8547@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).