aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/utils.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-08-04 12:04:02 +0100
committerGary Benson <gbenson@redhat.com>2014-08-29 10:53:35 +0100
commite3d6ba5d322d871004e84b936e6509749a350325 (patch)
tree975cbc463db136ec939958962a4947b17832c568 /gdb/gdbserver/utils.c
parent075c703382f5bed4ec0976dd11f3b5b694ce3cb1 (diff)
downloadgdb-e3d6ba5d322d871004e84b936e6509749a350325.zip
gdb-e3d6ba5d322d871004e84b936e6509749a350325.tar.gz
gdb-e3d6ba5d322d871004e84b936e6509749a350325.tar.bz2
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.
Diffstat (limited to 'gdb/gdbserver/utils.c')
-rw-r--r--gdb/gdbserver/utils.c11
1 files changed, 11 insertions, 0 deletions
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. */