[PATCHv3 3/3] gdb/python: add gdb.RemoteTargetConnection.send_packet
Andrew Burgess
andrew.burgess@embecosm.com
Fri Oct 22 17:11:10 GMT 2021
* Simon Marchi <simon.marchi@polymtl.ca> [2021-10-22 07:18:35 -0400]:
> On 2021-10-22 07:08, Andrew Burgess wrote:> This is what I originally wanted to do. The problem is that this
> > requires that the remote_target type be visible inside
> > py-connection.c, and currently remote_target is defined in remote.c.
> >
> > We could move the declaration of remote_target, but in the end I
> > figured that the string comparison was just as good, and I didn't see
> > the names changing - and even if they did, we can fix py-connections.c
> > with the new names, and this wouldn't break the external API.
>
> Well, you could add a:
>
> bool is_remote_target (process_stratum_target *target);
>
> function implemented in remote.c.
Good idea. Done in a v5 of this series.
Thanks,
Andrew
More information about the Gdb-patches
mailing list