X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fposix-hdep.c;h=e9db5761048bee5d3efc7e24d71c81f425f731c0;hb=683cd65eb4787e3e2921076699e0ca9b00762df3;hp=3280f1cac1c54d49897b265fa3c6063a20d3e882;hpb=28e7fd62340426746f9c896cbc40c5d374ec47aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index 3280f1cac1..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-2013 Free Software Foundation, Inc. + Copyright (C) 2006-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -20,30 +20,8 @@ #include "defs.h" #include "event-loop.h" -#include "gdb_string.h" - #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 @@ -52,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); -}