]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/serial.c
Add __FILE__ and __LINE__ parameter to internal_error() /
[thirdparty/binutils-gdb.git] / gdb / serial.c
index 0f48947440b972a16ccee997b8ddac99dc36f238..62c5bf089ca07ffe2f4a38ad5cf6043fc4484404 100644 (file)
@@ -349,7 +349,8 @@ serial_readchar (serial_t scb, int timeout)
   /* FIXME: cagney/1999-10-11: Don't enable this check until the ASYNC
      code is finished. */
   if (0 && SERIAL_IS_ASYNC_P (scb) && timeout < 0)
-    internal_error ("serial_readchar: blocking read in async mode");
+    internal_error (__FILE__, __LINE__,
+                   "serial_readchar: blocking read in async mode");
 
   ch = scb->ops->readchar (scb, timeout);
   if (serial_logfp != NULL)
@@ -508,7 +509,8 @@ deprecated_serial_fd (serial_t scb)
      called? */
   if (scb->fd < 0)
     {
-      internal_error ("serial: FD not valid");
+      internal_error (__FILE__, __LINE__,
+                     "serial: FD not valid");
     }
   return scb->fd; /* sigh */
 }