+2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * linux-low.cc (linux_process_target::filter_event): Return
+ void.
+ * linux-low.h (class linux_process_target) <filter_event>:
+ Return void.
+
2021-02-12 Tom Tromey <tromey@adacore.com>
* gdbreplay.cc (remote_desc): Remove.
return options;
}
-lwp_info *
+void
linux_process_target::filter_event (int lwpid, int wstat)
{
client_state &cs = get_client_state ();
if (child == NULL && WIFSTOPPED (wstat))
{
add_to_pid_list (&stopped_pids, lwpid, wstat);
- return NULL;
+ return;
}
else if (child == NULL)
- return NULL;
+ return;
thread = get_lwp_thread (child);
report this one right now. Leave the status pending for
the next time we're able to report it. */
mark_lwp_dead (child, wstat);
- return child;
+ return;
}
else
{
delete_lwp (child);
- return NULL;
+ return;
}
}
the first instruction. */
child->status_pending_p = 1;
child->status_pending = wstat;
- return child;
+ return;
}
}
}
{
/* The event has been handled, so just return without
reporting it. */
- return NULL;
+ return;
}
}
debug_printf ("LLW: SIGSTOP caught for %s "
"while stopping threads.\n",
target_pid_to_str (ptid_of (thread)));
- return NULL;
+ return;
}
else
{
target_pid_to_str (ptid_of (thread)));
resume_one_lwp (child, child->stepping, 0, NULL);
- return NULL;
+ return;
}
}
child->status_pending_p = 1;
child->status_pending = wstat;
- return child;
+ return;
}
bool
to a new LWP representing the new program. */
int handle_extended_wait (lwp_info **orig_event_lwp, int wstat);
- /* Do low-level handling of the event, and check if we should go on
- and pass it to caller code. Return the affected lwp if we are, or
- NULL otherwise. */
- lwp_info *filter_event (int lwpid, int wstat);
+ /* Do low-level handling of the event, and check if this is an event we want
+ to report. Is so, store it as a pending status in the lwp_info structure
+ corresponding to LWPID. */
+ void filter_event (int lwpid, int wstat);
/* Wait for an event from child(ren) WAIT_PTID, and return any that
match FILTER_PTID (leaving others pending). The PTIDs can be: