aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-06-04 01:58:49 +0000
committerAndrew Cagney <cagney@redhat.com>2000-06-04 01:58:49 +0000
commit8e6a3c35b9c93dbff0ead9659581e7b75c3e31be (patch)
tree53595a6a8dd256fac35bc9278d111afcae5d231d /gdb/utils.c
parent507f3c78fb4a1235b731350d60f1bf0ce94b4175 (diff)
downloadgdb-8e6a3c35b9c93dbff0ead9659581e7b75c3e31be.zip
gdb-8e6a3c35b9c93dbff0ead9659581e7b75c3e31be.tar.gz
gdb-8e6a3c35b9c93dbff0ead9659581e7b75c3e31be.tar.bz2
Eliminate safe_strsignal().
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 81ac1fa..f5088af 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -772,26 +772,6 @@ safe_strerror (errnum)
return (msg);
}
-/* The strsignal() function can return NULL for signal values that are
- out of range. Provide a "safe" version that always returns a
- printable string. */
-
-char *
-safe_strsignal (signo)
- int signo;
-{
- char *msg;
- static char buf[32];
-
- if ((msg = strsignal (signo)) == NULL)
- {
- sprintf (buf, "(undocumented signal %d)", signo);
- 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. */