aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-02-10 21:53:51 +0000
committerDaniel Jacobowitz <drow@false.org>2006-02-10 21:53:51 +0000
commit121ce6e53dd5751c6938ab86cbec2742702d06eb (patch)
tree2eb00528fea4aa66e404ad4e27f772407e73356e /gdb/utils.c
parent1f82754b119f92e76335667e98be68ed79586a8e (diff)
downloadgdb-121ce6e53dd5751c6938ab86cbec2742702d06eb.zip
gdb-121ce6e53dd5751c6938ab86cbec2742702d06eb.tar.gz
gdb-121ce6e53dd5751c6938ab86cbec2742702d06eb.tar.bz2
* Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
(ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c. * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs to posix-hdep.o by default. * configure: Regenerated. * configure.host: Document gdb_host_obs. Add an entry for i[34567]86-*-mingw32*. * mingw-hdep.c, posix-hdep.c: New files. * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index dff5cb8..c1ed5b7 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -839,25 +839,6 @@ internal_warning (const char *file, int line, const char *string, ...)
va_end (ap);
}
-/* 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);
-}
-
/* Print the system error message for errno, and also mention STRING
as the file name for which the error was encountered.
Then return to command level. */