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.
This commit is contained in:
Gary Benson
2014-08-04 12:04:02 +01:00
parent 075c703382
commit e3d6ba5d32
7 changed files with 51 additions and 17 deletions

View File

@@ -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);
}