diff options
author | Gary Benson <gbenson@redhat.com> | 2014-08-04 12:04:02 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-08-29 10:53:35 +0100 |
commit | e3d6ba5d322d871004e84b936e6509749a350325 (patch) | |
tree | 975cbc463db136ec939958962a4947b17832c568 /gdb/common/errors.c | |
parent | 075c703382f5bed4ec0976dd11f3b5b694ce3cb1 (diff) | |
download | gdb-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/common/errors.c')
-rw-r--r-- | gdb/common/errors.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/common/errors.c b/gdb/common/errors.c index 7d0bb6e..d6e17a8 100644 --- a/gdb/common/errors.c +++ b/gdb/common/errors.c @@ -59,3 +59,15 @@ internal_error (const char *file, int line, const char *fmt, ...) internal_verror (file, line, fmt, ap); va_end (ap); } + +/* See common/errors.h. */ + +void +internal_warning (const char *file, int line, const char *fmt, ...) +{ + va_list ap; + + va_start (ap, fmt); + internal_vwarning (file, line, fmt, ap); + va_end (ap); +} |