From: Jan Kratochvil Date: Wed, 8 Aug 2007 22:12:35 +0000 (+0000) Subject: 2007-08-08 Jan Kratochvil X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=652aaa2406a6b38bf38fdeb6aba975b7825f9f2d;p=binutils-gdb.git 2007-08-08 Jan Kratochvil * serial.c (serial_open): Fix the OPEN parameter macro expansion. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6b3636c5d83..0c6308e649d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-08-08 Jan Kratochvil + + * serial.c (serial_open): Fix the OPEN parameter macro expansion. + 2007-08-08 Michael Snyder * target.c (target_read_string): Guard against null. diff --git a/gdb/serial.c b/gdb/serial.c index 2025527920e..cefec8dae4f 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -213,7 +213,8 @@ serial_open (const char *name) scb->bufp = scb->buf; scb->error_fd = -1; - if (scb->ops->open (scb, open_name)) + /* `...->open (...)' would get expanded by an the open(2) syscall macro. */ + if ((*scb->ops->open) (scb, open_name)) { xfree (scb); return NULL;