projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/testsuite/
[binutils-gdb.git]
/
gdb
/
serial.c
diff --git
a/gdb/serial.c
b/gdb/serial.c
index ea437a1e82b11db26e73c2499610cff30b2f8ca9..75a08781d20ba436d386953412853e9039853797 100644
(file)
--- 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));
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. */
scb->async_handler = handler;
scb->async_context = context;
/* Only change mode if there is a need. */