2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 8 Aug 2007 22:12:35 +0000 (22:12 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 8 Aug 2007 22:12:35 +0000 (22:12 +0000)
* serial.c (serial_open): Fix the OPEN parameter macro expansion.

gdb/ChangeLog
gdb/serial.c

index 6b3636c..0c6308e 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * serial.c (serial_open): Fix the OPEN parameter macro expansion.
+
 2007-08-08  Michael Snyder  <msnyder@access-company.com>
 
        * target.c (target_read_string): Guard against null.
index 2025527..cefec8d 100644 (file)
@@ -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;