From: "Schimpe, Christina" <christina.schimpe@intel.com>
To: Tom Tromey <tom@tromey.com>,
Christina Schimpe via Gdb-patches <gdb-patches@sourceware.org>
Subject: RE: [PATCH 1/3] gdb: Make global feature array a per-remote target array
Date: Thu, 20 Jan 2022 16:32:10 +0000 [thread overview]
Message-ID: <BYAPR11MB3590D9175A2C2EBC680B2C9EF95A9@BYAPR11MB3590.namprd11.prod.outlook.com> (raw)
In-Reply-To: <875yqmglob.fsf@tromey.com>
Thank you for the review.
> >> + int remote_multi_process_p (remote_state *rs) const;
> >> + int remote_fork_event_p (remote_state*) const;
> >> + int remote_vfork_event_p (remote_state*) const;
> >> + int remote_exec_event_p (remote_state*) const;
>
> It seems like these methods don't actually need the 'remote_state *'
> parameter.
>
> >> + void reset_all_packet_configs_support (void);
>
> New code shouldn't use "(void)", just "()" is fine. Also, normally if
> we touch a function definition or declaration, we'll also remove a
> 'void' if there is one.
Yes, I agree. I will remove it.
> The packet number can be passed in using the 'context' attached to the
> command. See cmd_list_element::set_context and
> cmd_list_element::context.
> This is simple to do and would remove the need for this loop.
>
> It's mildly annoying that this only accepts a pointer and not a scalar,
> but it can either be cast or you could pass the address the slot in
> remote_protocol_packets and then do some pointer math to reconstruct the
> index.
>
> The same applies to the 'show' command.
Ah, thanks for the hint. I will use the 'context' and remove the loop.
Regards,
Christina
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
next prev parent reply other threads:[~2022-01-20 16:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 15:21 [PATCH 0/3] Apply fixme notes for multi-target support Christina Schimpe
2022-01-13 15:21 ` [PATCH 1/3] gdb: Make global feature array a per-remote target array Christina Schimpe
2022-01-14 19:30 ` Tom Tromey
2022-01-20 16:32 ` Schimpe, Christina [this message]
2022-01-18 11:30 ` Andrew Burgess
2022-01-20 17:24 ` Schimpe, Christina
2022-01-13 15:21 ` [PATCH 2/3] gdb: Add per-remote target variables for memory read and write config Christina Schimpe
2022-01-14 19:33 ` Tom Tromey
2022-01-18 11:39 ` Andrew Burgess
2022-01-24 15:06 ` Schimpe, Christina
2022-02-04 18:03 ` Andrew Burgess
2022-01-13 15:21 ` [PATCH 3/3] gdb: Remove workaround for the vCont packet Christina Schimpe
2022-01-14 19:42 ` Tom Tromey
2022-01-28 13:28 ` Schimpe, Christina
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=BYAPR11MB3590D9175A2C2EBC680B2C9EF95A9@BYAPR11MB3590.namprd11.prod.outlook.com \
--to=christina.schimpe@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/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).