aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-09-15 06:27:18 +0000
committerStu Grossman <grossman@cygnus>1992-09-15 06:27:18 +0000
commita8e033f2a2dca7a104e66ab1351c46fc2c2baf03 (patch)
tree2a65792c4fd0585c290d7bf8a2bebafbe4f237dc /gdb/language.c
parentb36e3a9b49aa9a2a24555e0a6a50f5cd3d5323b7 (diff)
downloadgdb-a8e033f2a2dca7a104e66ab1351c46fc2c2baf03.zip
gdb-a8e033f2a2dca7a104e66ab1351c46fc2c2baf03.tar.gz
gdb-a8e033f2a2dca7a104e66ab1351c46fc2c2baf03.tar.bz2
* breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
symfile.c, target.c, valprint.c: Use _filtered form of *printf. defs.h, utils.c: Make vfprintf_filtered global.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 2ecb150..32ed779 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -156,7 +156,7 @@ set_language_command (ignore, from_tty)
/* FIXME -- do this from the list, with HELP. */
if (!language || !language[0]) {
- printf("The currently understood settings are:\n\n\
+ printf_filtered ("The currently understood settings are:\n\n\
local or auto Automatic setting based on source file\n\
c Use the C language\n\
c++ Use the C++ language\n\
@@ -204,7 +204,7 @@ show_type_command(ignore, from_tty)
int from_tty;
{
if (type_check != current_language->la_type_check)
- printf(
+ printf_filtered(
"Warning: the current type check setting does not match the language.\n");
}
@@ -250,7 +250,7 @@ show_range_command(ignore, from_tty)
{
if (range_check != current_language->la_range_check)
- printf(
+ printf_filtered(
"Warning: the current range check setting does not match the language.\n");
}
@@ -399,11 +399,11 @@ language_info (quietly)
int quietly;
{
/* FIXME: quietly is ignored at the moment. */
- printf("Current Language: %s\n",language);
+ printf_filtered("Current Language: %s\n",language);
show_language_command((char *)0, 1);
- printf("Type checking: %s\n",type);
+ printf_filtered("Type checking: %s\n",type);
show_type_command((char *)0, 1);
- printf("Range checking: %s\n",range);
+ printf_filtered("Range checking: %s\n",range);
show_range_command((char *)0, 1);
}
@@ -929,14 +929,14 @@ type_error (va_alist)
char *string;
if (type_check==type_check_warn)
- fprintf(stderr,warning_pre_print);
+ fprintf_filtered(stderr,warning_pre_print);
else
target_terminal_ours();
va_start (args);
string = va_arg (args, char *);
- vfprintf (stderr, string, args);
- fprintf (stderr, "\n");
+ vfprintf_filtered (stderr, string, args);
+ fprintf_filtered (stderr, "\n");
va_end (args);
if (type_check==type_check_on)
return_to_top_level();
@@ -950,14 +950,14 @@ range_error (va_alist)
char *string;
if (range_check==range_check_warn)
- fprintf(stderr,warning_pre_print);
+ fprintf_filtered(stderr,warning_pre_print);
else
target_terminal_ours();
va_start (args);
string = va_arg (args, char *);
- vfprintf (stderr, string, args);
- fprintf (stderr, "\n");
+ vfprintf_filtered (stderr, string, args);
+ fprintf_filtered (stderr, "\n");
va_end (args);
if (range_check==range_check_on)
return_to_top_level();
@@ -986,7 +986,7 @@ set_check (ignore, from_tty)
char *ignore;
int from_tty;
{
- printf(
+ printf_filtered(
"\"set check\" must be followed by the name of a check subcommand.\n");
help_list(setchecklist, "set check ", -1, stdout);
}
@@ -1007,7 +1007,7 @@ add_language (lang)
{
if (lang->la_magic != LANG_MAGIC)
{
- fprintf(stderr, "Magic number of %s language struct wrong\n",
+ fprintf_filtered(stderr, "Magic number of %s language struct wrong\n",
lang->la_name);
abort();
}