X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fposix-hdep.c;h=e9db5761048bee5d3efc7e24d71c81f425f731c0;hb=a14d1f4dfc08edc8fe92b17b36a55d89203fb89f;hp=13cddbac55b5baaafb99e8eeaa48b7ea5ce0b725;hpb=32d0add0a654c1204ab71dc8a55d9374538c4b33;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index 13cddbac55..e9db576104 100644 --- a/gdb/posix-hdep.c +++ b/gdb/posix-hdep.c @@ -1,6 +1,6 @@ /* Host support routines for MinGW, for GDB, the GNU debugger. - Copyright (C) 2006-2015 Free Software Foundation, Inc. + Copyright (C) 2006-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -22,26 +22,6 @@ #include "gdb_select.h" -/* The strerror() function can return NULL for errno values that are - out of range. Provide a "safe" version that always returns a - printable string. */ - -char * -safe_strerror (int errnum) -{ - char *msg; - - msg = strerror (errnum); - if (msg == NULL) - { - static char buf[32]; - - xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum); - msg = buf; - } - return (msg); -} - /* Wrapper for select. Nothing special needed on POSIX platforms. */ int @@ -50,16 +30,3 @@ gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, { return select (n, readfds, writefds, exceptfds, timeout); } - -/* Wrapper for the body of signal handlers. Nothing special needed on - POSIX platforms. */ - -void -gdb_call_async_signal_handler (struct async_signal_handler *handler, - int immediate_p) -{ - if (immediate_p) - call_async_signal_handler (handler); - else - mark_async_signal_handler (handler); -}