Reduce use of unfiltered output in Darwin code
authorTom Tromey <tom@tromey.com>
Mon, 27 Dec 2021 04:38:34 +0000 (21:38 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 10 Jan 2022 01:59:52 +0000 (18:59 -0700)
commita42a74331c9d81be166a2f8587d17a967b8eefe0
tree1a4e273e8058eb3277dc2b45c0d8a76096f9c7d6
parent4bb12b295ad02980e0f90571d24c64e8687e3ee9
Reduce use of unfiltered output in Darwin code

The Darwin code uses unfiltered output liberally.  This patch changes
this code to send some output to gdb_stdlog (in some cases via the use
of debug_prefixed_printf_cond_nofunc), or to gdb_stderr, or to simply
switch to filtered output.

Note that I didn't switch inferior_debug to use
debug_prefixed_printf_cond_nofunc, because that would affect the
output by removing the information about the inferior.  I wasn't sure
if this was important or not, so I left it in.

v2 of this patch uses warning rather than prints to gdb_stderr, and
removes some trailing whitespace.

I can't compile this patch, so it's "best effort".
gdb/darwin-nat-info.c
gdb/darwin-nat.c
gdb/i386-darwin-nat.c