This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] gdbserver lwp_info: Initialize fields, use new/delete
Simon Marchi <simon.marchi@ericsson.com> writes:
> @@ -3480,7 +3476,7 @@ linux_wait_1 (ptid_t ptid,
> event_child->collecting_fast_tracepoint
> = linux_fast_tracepoint_collecting (event_child, NULL);
>
> - if (event_child->collecting_fast_tracepoint != 1)
> + if (!event_child->collecting_fast_tracepoint)
> {
> /* No longer need this breakpoint. */
> if (event_child->exit_jump_pad_bkpt != NULL)
linux_fast_tracepoint_collecting doesn't return boolean, it returns 0, 1
and 2. See comments in tracepoint.c:fast_tracepoint_collecting.
--
Yao (齐尧)