From e3d6ba5d322d871004e84b936e6509749a350325 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Mon, 4 Aug 2014 12:04:02 +0100 Subject: Move internal_{,v}warning to common/errors.[ch] This commit moves internal_warning and internal_vwarning into common/errors.[ch]. gdb/ChangeLog: * common/errors.h (internal_warning): New declaration. (internal_vwarning): Likewise. * common/errors.c (internal_warning): New function. * utils.h (internal_warning): Don't declare. (internal_vwarning): Likewise. * utils.c (internal_warning): Removed. gdb/gdbserver/ChangeLog: * utils.c (internal_vwarning): New function. --- gdb/gdbserver/utils.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gdb/gdbserver/utils.c') diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 0c2af05..244e114 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -110,6 +110,17 @@ internal_verror (const char *file, int line, const char *fmt, va_list args) exit (1); } +/* Report a problem internal to GDBserver. */ + +void +internal_vwarning (const char *file, int line, const char *fmt, va_list args) +{ + fprintf (stderr, "\ +%s:%d: A problem internal to " TOOLNAME " has been detected.\n", file, line); + vfprintf (stderr, fmt, args); + fprintf (stderr, "\n"); +} + /* Convert a CORE_ADDR into a HEX string, like %lx. The result is stored in a circular static buffer, NUMCELLS deep. */ -- cgit v1.1