Don't use wchar_printable in print_wchar
authorTom Tromey <tom@tromey.com>
Sat, 12 Feb 2022 01:24:23 +0000 (18:24 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 10 Oct 2022 16:43:34 +0000 (10:43 -0600)
commit05328f9105ed738cc4fe96429abd33466e891699
treedbc4e4795b3c2dec5bd3e6604b3bfced4a883e25
parent3a3bb6eb36a29e3201bfc4cc53e341f4f98e6cf1
Don't use wchar_printable in print_wchar

print_wchar uses wchar_printable, but this isn't needed -- all the
relevant cases are already handled by the 'switch'.  This changes the
code to use gdb_iswprint, and removes a somewhat confusing comment
related to this code.
gdb/valprint.c