X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fposix-hdep.c;h=e9db5761048bee5d3efc7e24d71c81f425f731c0;hb=a14d1f4dfc08edc8fe92b17b36a55d89203fb89f;hp=0c8952dbc86dca57410d6cdabcde389a31e40e88;hpb=0fb0cc7590113e9b459dfcc48dc71c9d419d9580;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index 0c8952dbc8..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, 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2006-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -20,29 +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 @@ -51,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); -}