[PATCH] gdbsupport: simplify ptid_t::is_pid implementation

Kevin Buettner kevinb@redhat.com
Tue Jan 25 23:53:18 GMT 2022


On Mon, 24 Jan 2022 16:41:41 -0500
Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> wrote:

> The current ptid_t::is_pid implementation makes more comparisons than
> necessary.  We can simplify it to just check that the pid value is
> positive and the other two components are 0.

LGTM.

Kevin



More information about the Gdb-patches mailing list