diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-02 14:44:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-10-02 14:47:06 -0400 |
commit | db20ebdfae432f23def32f0b9bbf6e023c926235 (patch) | |
tree | b11102a43affccf7bcb740972c51bc2c4212832e /gdb/remote.c | |
parent | 2554f6f564097e4e3a4132d3af8ef78d588d13d1 (diff) | |
download | fsf-binutils-gdb-db20ebdfae432f23def32f0b9bbf6e023c926235.zip fsf-binutils-gdb-db20ebdfae432f23def32f0b9bbf6e023c926235.tar.gz fsf-binutils-gdb-db20ebdfae432f23def32f0b9bbf6e023c926235.tar.bz2 |
gdb: give names to async event/signal handlers
Assign names to async event/signal handlers. They will be used in debug
messages when file handlers are invoked.
Unlike in the previous patch, the names are not copied in the structure,
since we don't need to (all names are string literals for the moment).
gdb/ChangeLog:
* async-event.h (create_async_signal_handler): Add name
parameter.
(create_async_event_handler): Likewise.
* async-event.c (struct async_signal_handler) <name>: New field.
(struct async_event_handler) <name>: New field.
(create_async_signal_handler): Assign name.
(create_async_event_handler): Assign name.
* event-top.c (async_init_signals): Pass name when creating
handler.
* infrun.c (_initialize_infrun): Likewise.
* record-btrace.c (record_btrace_push_target): Likewise.
* record-full.c (record_full_open): Likewise.
* remote-notif.c (remote_notif_state_allocate): Likewise.
* remote.c (remote_target::open_1): Likewise.
* tui/tui-win.c (tui_initialize_win): Likewise.
Change-Id: Icd9d9f775542ae5fc2cd148c12f481e7885936d5
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 1ef9b44..f951486 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -5605,7 +5605,8 @@ remote_target::open_1 (const char *name, int from_tty, int extended_p) /* 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, remote, + "remote"); rs->notif_state = remote_notif_state_allocate (remote); /* Reset the target state; these things will be queried either by |