aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index ea437a1..75a0878 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -528,6 +528,7 @@ serial_async (struct serial *scb,
void *context)
{
int changed = ((scb->async_handler == NULL) != (handler == NULL));
+
scb->async_handler = handler;
scb->async_context = context;
/* Only change mode if there is a need. */