* procfs.c (proc_wait): Call print_sys_errmsg() if we get an
authorStu Grossman <grossman@cygnus>
Tue, 15 Sep 1992 06:42:19 +0000 (06:42 +0000)
committerStu Grossman <grossman@cygnus>
Tue, 15 Sep 1992 06:42:19 +0000 (06:42 +0000)
error from PIOCSWSTOP.

gdb/ChangeLog
gdb/procfs.c

index 8cf1319cf13b5a6fdac18ee62b8b977480475589..d1b38a2af54c8f88d364ee5c38db11cf7ba18cf7 100644 (file)
@@ -1,5 +1,8 @@
 Mon Sep 14 19:20:43 1992  Stu Grossman  (grossman at cygnus.com)
 
+       * procfs.c (proc_wait):  Call print_sys_errmsg() if we get an
+       error from PIOCSWSTOP.
+
        * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
        symfile.c, target.c, valprint.c:  Use _filtered form of *printf.
        defs.h, utils.c:  Make vfprintf_filtered global.
index b4b1201175e25ff2f6928d7020d4ad21cafbf70c..0365c658ced712935619dfd1da5554a504ec9562 100644 (file)
@@ -1886,6 +1886,7 @@ proc_wait (statloc)
          rtnval = wait (&statval);
          if (rtnval != inferior_pid)
            {
+             print_sys_errmsg (pi.pathname, errno);
              error ("PIOCWSTOP, wait failed, returned %d", rtnval);
              /* NOTREACHED */
            }