aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-08 16:31:44 -0700
committerTom Tromey <tom@tromey.com>2022-03-29 12:46:24 -0600
commit830df12588cfa80be673e710bee22761752ead11 (patch)
tree184f592abd10c76bd670257b30ba240c6e88b4fb /gdb/windows-nat.c
parent9e4902bfacb49f350cb95e7ee0fe1a8eed33c353 (diff)
downloadfsf-binutils-gdb-830df12588cfa80be673e710bee22761752ead11.zip
fsf-binutils-gdb-830df12588cfa80be673e710bee22761752ead11.tar.gz
fsf-binutils-gdb-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/windows-nat.c')
-rw-r--r--gdb/windows-nat.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 81e26fe..c933034 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -429,11 +429,11 @@ windows_delete_thread (ptid_t ptid, DWORD exit_code, bool main_thread_p)
here as well. */
if (info_verbose)
- printf_unfiltered ("[Deleting %s]\n", target_pid_to_str (ptid).c_str ());
+ printf_filtered ("[Deleting %s]\n", target_pid_to_str (ptid).c_str ());
else if (print_thread_events && !main_thread_p)
- printf_unfiltered (_("[%s exited with code %u]\n"),
- target_pid_to_str (ptid).c_str (),
- (unsigned) exit_code);
+ printf_filtered (_("[%s exited with code %u]\n"),
+ target_pid_to_str (ptid).c_str (),
+ (unsigned) exit_code);
delete_thread (find_thread_ptid (&the_windows_nat_target, ptid));
@@ -1631,11 +1631,11 @@ windows_nat_target::get_windows_debug_event (int pid,
default:
if (saw_create != 1)
break;
- printf_unfiltered ("gdb: kernel event for pid=%u tid=0x%x\n",
- (unsigned) current_event.dwProcessId,
- (unsigned) current_event.dwThreadId);
- printf_unfiltered (" unknown event code %u\n",
- (unsigned) current_event.dwDebugEventCode);
+ printf_filtered ("gdb: kernel event for pid=%u tid=0x%x\n",
+ (unsigned) current_event.dwProcessId,
+ (unsigned) current_event.dwThreadId);
+ printf_filtered (" unknown event code %u\n",
+ (unsigned) current_event.dwDebugEventCode);
break;
}