aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-01-31 04:10:51 +0000
committerAndrew Cagney <cagney@redhat.com>2002-01-31 04:10:51 +0000
commitf5a96129d27df3f8e5f057b77b2d6f033843966b (patch)
treede27f1abdc7e5b626a6b888d2aa2f90891a1cd35 /gdb/rs6000-nat.c
parentdbc37f892b730f7fb0177770be3e3eb67ad36149 (diff)
downloadgdb-f5a96129d27df3f8e5f057b77b2d6f033843966b.zip
gdb-f5a96129d27df3f8e5f057b77b2d6f033843966b.tar.gz
gdb-f5a96129d27df3f8e5f057b77b2d6f033843966b.tar.bz2
* 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.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c8
1 files changed, 3 insertions, 5 deletions
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;
}