diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/utils.c | 19 | ||||
-rw-r--r-- | gdb/gdbserver/utils.h | 1 |
3 files changed, 5 insertions, 20 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 9400b8a..2b63ca3 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2014-08-28 Gary Benson <gbenson@redhat.com> + * utils.h (fatal): Remove declaration. + * utils.c (fatal): Remove function. + +2014-08-28 Gary Benson <gbenson@redhat.com> + * tracepoint.c (gdb_agent_init): Replace fatal with perror_with_name. (initialize_tracepoint): Likewise. diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 3aac3cd..0c2af05 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -90,25 +90,6 @@ verror (const char *string, va_list args) #endif } -/* Print an error message and exit reporting failure. - This is for a error that we cannot continue from. - STRING and ARG are passed to fprintf. */ - -/* VARARGS */ -void -fatal (const char *string,...) -{ - va_list args; - va_start (args, string); - fprintf (stderr, PREFIX); - vfprintf (stderr, string, args); - fprintf (stderr, "\n"); - va_end (args); - exit (1); -} - -/* Print a warning message. */ - void vwarning (const char *string, va_list args) { diff --git a/gdb/gdbserver/utils.h b/gdb/gdbserver/utils.h index cdd80df..9732cbd 100644 --- a/gdb/gdbserver/utils.h +++ b/gdb/gdbserver/utils.h @@ -19,7 +19,6 @@ #ifndef UTILS_H #define UTILS_H -void fatal (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); char *paddress (CORE_ADDR addr); char *pfildes (gdb_fildes_t fd); |