+2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * inf-loop.c (inferior_event_handler): Remove client_data param.
+ * inf-loop.h (inferior_event_handler): Likewise.
+ * infcmd.c (step_1): Adjust.
+ * infrun.c (proceed): Adjust.
+ (fetch_inferior_event): Remove client_data param.
+ (infrun_async_inferior_event_handler): Adjust.
+ * infrun.h (fetch_inferior_event): Remove `void *` param.
+ * linux-nat.c (handle_target_event): Adjust.
+ * record-btrace.c (record_btrace_handle_async_inferior_event):
+ Adjust.
+ * record-full.c (record_full_async_inferior_event_handler):
+ Adjust.
+ * remote.c (remote_async_inferior_event_handler): Adjust.
+
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
/* General function to handle events in the inferior. */
void
-inferior_event_handler (enum inferior_event_type event_type,
- gdb_client_data client_data)
+inferior_event_handler (enum inferior_event_type event_type)
{
switch (event_type)
{
case INF_REG_EVENT:
- fetch_inferior_event (client_data);
+ fetch_inferior_event ();
break;
case INF_EXEC_COMPLETE:
#include "target.h" /* For enum inferior_event_type. */
-extern void inferior_event_handler (enum inferior_event_type event_type,
- void* client_data);
+extern void inferior_event_handler (enum inferior_event_type event_type);
#endif /* #ifndef INF_LOOP_H */
thr->thread_fsm->clean_up (thr);
proceeded = normal_stop ();
if (!proceeded)
- inferior_event_handler (INF_EXEC_COMPLETE, NULL);
+ inferior_event_handler (INF_EXEC_COMPLETE);
all_uis_check_sync_execution_done ();
}
}
/* The target for some reason decided not to resume. */
normal_stop ();
if (target_can_async_p ())
- inferior_event_handler (INF_EXEC_COMPLETE, NULL);
+ inferior_event_handler (INF_EXEC_COMPLETE);
return;
}
necessary cleanups. */
void
-fetch_inferior_event (void *client_data)
+fetch_inferior_event ()
{
struct execution_control_state ecss;
struct execution_control_state *ecs = &ecss;
if (!proceeded)
{
- inferior_event_handler (INF_EXEC_COMPLETE, NULL);
+ inferior_event_handler (INF_EXEC_COMPLETE);
cmd_done = 1;
}
static void
infrun_async_inferior_event_handler (gdb_client_data data)
{
- inferior_event_handler (INF_REG_EVENT, NULL);
+ inferior_event_handler (INF_REG_EVENT);
}
void _initialize_infrun ();
extern void prepare_for_detach (void);
-extern void fetch_inferior_event (void *);
+extern void fetch_inferior_event ();
extern void init_wait_for_inferior (void);
static void
handle_target_event (int error, gdb_client_data client_data)
{
- inferior_event_handler (INF_REG_EVENT, NULL);
+ inferior_event_handler (INF_REG_EVENT);
}
/* Create/destroy the target events pipe. Returns previous state. */
static void
record_btrace_handle_async_inferior_event (gdb_client_data data)
{
- inferior_event_handler (INF_REG_EVENT, NULL);
+ inferior_event_handler (INF_REG_EVENT);
}
/* See record-btrace.h. */
static void
record_full_async_inferior_event_handler (gdb_client_data data)
{
- inferior_event_handler (INF_REG_EVENT, NULL);
+ inferior_event_handler (INF_REG_EVENT);
}
/* Open the process record target for 'core' files. */
/* Register extra event sources in the event loop. */
rs->remote_async_inferior_event_token
- = create_async_event_handler (remote_async_inferior_event_handler,
- remote);
+ = create_async_event_handler (remote_async_inferior_event_handler, NULL);
rs->notif_state = remote_notif_state_allocate (remote);
/* Reset the target state; these things will be queried either by
{
/* Don't propogate error information up to the client. Instead let
the client find out about the error by querying the target. */
- inferior_event_handler (INF_REG_EVENT, NULL);
+ inferior_event_handler (INF_REG_EVENT);
}
static void
remote_async_inferior_event_handler (gdb_client_data data)
{
- inferior_event_handler (INF_REG_EVENT, data);
+ inferior_event_handler (INF_REG_EVENT);
}
int