From: Andrew Burgess <aburgess@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [PATCHv5 0/4] Python API for target connections, and packet sending
Date: Tue, 09 Nov 2021 10:04:35 +0000 [thread overview]
Message-ID: <87y25x63ws.fsf@redhat.com> (raw)
In-Reply-To: <cover.1634922528.git.andrew.burgess@embecosm.com>
Ping!
I think I addressed all the issues from the last round of feedback.
Thanks,
Andrew
Andrew Burgess <andrew.burgess@embecosm.com> writes:
> Since v4:
>
> - Updated to latest upstream/master.
>
> - Replaced string comparison on process_stratum_target::shortname()
> with a new helper function is_remote_target declared in remote.h,
> and defined in remote.c.
>
> - Fixed a bug in py-send-packet.exp (patch #4) when running the test
> using Python 3.
>
> Since v3:
>
> - Addressed all review comments.
>
> - The RemoteTargetConnection.send_packet method now returns a bytes
> object for Py3, and a bytesarray object for Py2. This change is
> in patch #3.
>
> - New patch #4 fixes GDB so that we can correctly return packets
> containing null bytes, this fixes both 'maint packet' and the
> Python API.
>
> Since v2:
>
> - Added a gdb.RemoteTargetConnection sub-class, which is used for
> 'remote' and 'extended-remote' connections. The previous
> 'send_remote_packet' has become 'send_packet' on this new
> sub-class.
>
> - Tests and documentation have been updated to reflect the above
> change.
>
> - In the first patch, connpy_repr has been modified in order to
> prepare it for the sub-class that will appear in the later
> patch.
>
> Since v1:
>
> - Rebased onto current upstream master and resolved the merge
> conflicts.
>
> - Addressed the documentation feedback from Eli. I'm not 100% sure
> that I have correctly addressed the concerns about patch #3, so
> this is probably worth rechecking.
>
>
> ---
>
> Andrew Burgess (4):
> gdb/python: introduce gdb.TargetConnection object type
> gdb: make packet_command function available outside remote.c
> gdb/python: add gdb.RemoteTargetConnection.send_packet
> gdb: handle binary data in 'maint packet' and
> RemoteTargetConnection.send_packet
>
> gdb/Makefile.in | 1 +
> gdb/NEWS | 21 +
> gdb/doc/gdb.texinfo | 1 +
> gdb/doc/python.texi | 127 ++++-
> gdb/observable.c | 1 +
> gdb/observable.h | 3 +
> gdb/python/py-all-events.def | 1 +
> gdb/python/py-connection.c | 536 ++++++++++++++++++
> gdb/python/py-event-types.def | 5 +
> gdb/python/py-inferior.c | 16 +
> gdb/python/python-internal.h | 6 +
> gdb/python/python.c | 5 +
> gdb/remote.c | 113 ++--
> gdb/remote.h | 42 ++
> gdb/target-connection.c | 4 +
> .../gdb.multi/multi-target-info-inferiors.exp | 38 ++
> .../gdb.multi/multi-target-info-inferiors.py | 63 ++
> gdb/testsuite/gdb.python/py-connection.c | 22 +
> gdb/testsuite/gdb.python/py-connection.exp | 75 +++
> gdb/testsuite/gdb.python/py-inferior.exp | 20 +-
> gdb/testsuite/gdb.python/py-send-packet.c | 22 +
> gdb/testsuite/gdb.python/py-send-packet.exp | 89 +++
> gdb/testsuite/gdb.python/py-send-packet.py | 109 ++++
> 23 files changed, 1281 insertions(+), 39 deletions(-)
> create mode 100644 gdb/python/py-connection.c
> create mode 100644 gdb/testsuite/gdb.multi/multi-target-info-inferiors.py
> create mode 100644 gdb/testsuite/gdb.python/py-connection.c
> create mode 100644 gdb/testsuite/gdb.python/py-connection.exp
> create mode 100644 gdb/testsuite/gdb.python/py-send-packet.c
> create mode 100644 gdb/testsuite/gdb.python/py-send-packet.exp
> create mode 100644 gdb/testsuite/gdb.python/py-send-packet.py
>
> --
> 2.25.4
next prev parent reply other threads:[~2021-11-09 10:04 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-11 16:03 [PATCH 0/3] " Andrew Burgess
2021-09-11 16:03 ` [PATCH 1/3] gdb/python: introduce gdb.TargetConnection object type Andrew Burgess
2021-09-11 16:19 ` Eli Zaretskii
2021-09-11 16:03 ` [PATCH 2/3] gdb: make packet_command function available outside remote.c Andrew Burgess
2021-09-11 16:03 ` [PATCH 3/3] gdb/python: add TargetConnection.send_remote_packet method Andrew Burgess
2021-09-11 16:10 ` Eli Zaretskii
2021-10-18 9:45 ` [PATCHv2 0/3] Python API for target connections, and packet sending Andrew Burgess
2021-10-18 9:45 ` [PATCHv2 1/3] gdb/python: introduce gdb.TargetConnection object type Andrew Burgess
2021-10-18 12:44 ` Eli Zaretskii
2021-10-18 15:53 ` Simon Marchi
2021-10-18 9:45 ` [PATCHv2 2/3] gdb: make packet_command function available outside remote.c Andrew Burgess
2021-10-18 9:45 ` [PATCHv2 3/3] gdb/python: add TargetConnection.send_remote_packet method Andrew Burgess
2021-10-18 12:57 ` Eli Zaretskii
2021-10-18 15:46 ` Simon Marchi
2021-10-19 10:17 ` [PATCHv3 0/3] Python API for target connections, and packet sending Andrew Burgess
2021-10-19 10:17 ` [PATCHv3 1/3] gdb/python: introduce gdb.TargetConnection object type Andrew Burgess
2021-10-19 12:26 ` Eli Zaretskii
2021-10-20 22:33 ` Lancelot SIX
2021-10-21 2:00 ` Simon Marchi
2021-10-19 10:17 ` [PATCHv3 2/3] gdb: make packet_command function available outside remote.c Andrew Burgess
2021-10-21 2:23 ` Simon Marchi
2021-10-19 10:17 ` [PATCHv3 3/3] gdb/python: add gdb.RemoteTargetConnection.send_packet Andrew Burgess
2021-10-19 12:28 ` Eli Zaretskii
2021-10-21 2:43 ` Simon Marchi
2021-10-22 11:08 ` Andrew Burgess
2021-10-22 11:18 ` Simon Marchi
2021-10-22 17:11 ` Andrew Burgess
2021-10-22 10:58 ` [PATCHv4 0/4] Python API for target connections, and packet sending Andrew Burgess
2021-10-22 10:58 ` [PATCHv4 1/4] gdb/python: introduce gdb.TargetConnection object type Andrew Burgess
2021-10-22 10:58 ` [PATCHv4 2/4] gdb: make packet_command function available outside remote.c Andrew Burgess
2021-10-22 10:58 ` [PATCHv4 3/4] gdb/python: add gdb.RemoteTargetConnection.send_packet Andrew Burgess
2021-10-22 10:58 ` [PATCHv4 4/4] gdb: handle binary data in 'maint packet' and RemoteTargetConnection.send_packet Andrew Burgess
2021-10-22 17:10 ` [PATCHv5 0/4] Python API for target connections, and packet sending Andrew Burgess
2021-10-22 17:10 ` [PATCHv5 1/4] gdb/python: introduce gdb.TargetConnection object type Andrew Burgess
2021-10-22 17:10 ` [PATCHv5 2/4] gdb: make packet_command function available outside remote.c Andrew Burgess
2021-10-22 17:10 ` [PATCHv5 3/4] gdb/python: add gdb.RemoteTargetConnection.send_packet Andrew Burgess
2021-11-15 2:08 ` Simon Marchi
2021-11-15 9:25 ` Andrew Burgess
2021-11-15 13:16 ` Simon Marchi
2021-10-22 17:10 ` [PATCHv5 4/4] gdb: handle binary data in 'maint packet' and RemoteTargetConnection.send_packet Andrew Burgess
2021-11-15 2:44 ` Simon Marchi
2021-11-09 10:04 ` Andrew Burgess [this message]
2021-11-15 17:40 ` [PATCHv6 0/3] Python API for target connections, and packet sending Andrew Burgess
2021-11-15 17:40 ` [PATCHv6 1/3] gdb/python: introduce gdb.TargetConnection object type Andrew Burgess
2021-11-15 17:40 ` [PATCHv6 2/3] gdb: make packet_command function available outside remote.c Andrew Burgess
2021-11-15 17:40 ` [PATCHv6 3/3] gdb/python: add gdb.RemoteTargetConnection.send_packet Andrew Burgess
2021-11-15 18:42 ` Eli Zaretskii
2021-11-15 19:38 ` Simon Marchi
2021-11-15 19:29 ` Simon Marchi
2021-11-16 12:48 ` Andrew Burgess
2021-11-16 15:10 ` Simon Marchi
2021-11-30 12:15 ` Andrew Burgess
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=87y25x63ws.fsf@redhat.com \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
/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).