From: Stu Grossman Date: Tue, 15 Sep 1992 06:42:19 +0000 (+0000) Subject: * procfs.c (proc_wait): Call print_sys_errmsg() if we get an X-Git-Tag: gdb-4_18~21072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34da36088e1e0542f1fe0b67e4d05534c2d0db66;p=external%2Fbinutils.git * procfs.c (proc_wait): Call print_sys_errmsg() if we get an error from PIOCSWSTOP. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8cf1319..d1b38a2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/procfs.c b/gdb/procfs.c index b4b1201..0365c65 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -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 */ }