diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-08 16:31:44 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 830df12588cfa80be673e710bee22761752ead11 (patch) | |
tree | 184f592abd10c76bd670257b30ba240c6e88b4fb /gdb/mdebugread.c | |
parent | 9e4902bfacb49f350cb95e7ee0fe1a8eed33c353 (diff) | |
download | binutils-830df12588cfa80be673e710bee22761752ead11.zip binutils-830df12588cfa80be673e710bee22761752ead11.tar.gz binutils-830df12588cfa80be673e710bee22761752ead11.tar.bz2 |
Remove some uses of printf_unfiltered
A number of spots call printf_unfiltered only because they are in code
that should not be interrupted by the pager. However, I believe these
cases are all handled by infrun's blanket ban on paging, and so can be
converted to the default (_filtered) API.
After this patch, I think all the remaining _unfiltered calls are ones
that really ought to be. A few -- namely in complete_command -- could
be replaced by a scoped assignment to pagination_enabled, but for the
remainder, the code seems simple enough like this.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 8ede3d6..e377fdb 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -371,11 +371,11 @@ mdebug_build_psymtabs (minimal_symbol_reader &reader, if (compare_glevel (max_glevel, GLEVEL_2) < 0) { if (max_gdbinfo == 0) - printf_unfiltered (_("\n%s not compiled with -g, " - "debugging support is limited.\n"), - objfile->name); - printf_unfiltered (_("You should compile with -g2 or " - "-g3 for best debugging support.\n")); + printf_filtered (_("\n%s not compiled with -g, " + "debugging support is limited.\n"), + objfile->name); + printf_filtered (_("You should compile with -g2 or " + "-g3 for best debugging support.\n")); } #endif } |