[PATCH] gdb: remove unused fetch_inferior_event and inferior_event_handler parameters

Tom Tromey tom@tromey.com
Wed Jul 1 19:13:58 GMT 2020


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> I noticed that fetch_inferior_event receives the client_data parameter
Simon> from its caller, inferior_event_handler, but doesn't actually need it.
Simon> This patch removes it.  In turn, inferior_event_handler doesn't use its
Simon> parameter, so remove it too.

Simon> The `data` argument used when registering
Simon> remote_async_inferior_event_handler is changed to NULL, to avoid
Simon> confusion.  It could make people think that the value passed is used
Simon> somewhere, when in fact it's not.

Looks good to me.  Thanks for doing this.

Tom


More information about the Gdb-patches mailing list