From f5a96129d27df3f8e5f057b77b2d6f033843966b Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 31 Jan 2002 04:10:51 +0000 Subject: * defs.h (vwarning): Declare. (warning_begin): Delete declaration. * utils.c (vwarning): New function. (warning): Call vwarning. (warning_begin): Delete function. * rs6000-nat.c (vmap_ldinfo): Use the function warning to print the warning message. * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to warning_begin. --- gdb/rs6000-nat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gdb/rs6000-nat.c') diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 94daaff..f79e991 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -851,14 +851,12 @@ vmap_ldinfo (LdInfo *ldi) running a different copy of the same executable. */ if (symfile_objfile != NULL && !got_exec_file) { - warning_begin (); - fputs_unfiltered ("Symbol file ", gdb_stderr); - fputs_unfiltered (symfile_objfile->name, gdb_stderr); - fputs_unfiltered ("\nis not mapped; discarding it.\n\ + warning ("Symbol file %s\nis not mapped; discarding it.\n\ If in fact that file has symbols which the mapped files listed by\n\ \"info files\" lack, you can load symbols with the \"symbol-file\" or\n\ \"add-symbol-file\" commands (note that you must take care of relocating\n\ -symbols to the proper address).\n", gdb_stderr); +symbols to the proper address).", + symfile_objfile->name); free_objfile (symfile_objfile); symfile_objfile = NULL; } -- cgit v1.1