aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2007-08-08 22:12:35 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2007-08-08 22:12:35 +0000
commit652aaa2406a6b38bf38fdeb6aba975b7825f9f2d (patch)
tree11fc4bb2059d94c1dcff1b0e63afc104bdb48d99 /gdb/serial.c
parent6217bf3e40f132256f135ae6f5e6fa4263db6982 (diff)
downloadfsf-binutils-gdb-652aaa2406a6b38bf38fdeb6aba975b7825f9f2d.zip
fsf-binutils-gdb-652aaa2406a6b38bf38fdeb6aba975b7825f9f2d.tar.gz
fsf-binutils-gdb-652aaa2406a6b38bf38fdeb6aba975b7825f9f2d.tar.bz2
2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* serial.c (serial_open): Fix the OPEN parameter macro expansion.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 2025527..cefec8d 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;