aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-cplus-symbols.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-19 11:21:35 -0600
committerTom Tromey <tromey@adacore.com>2022-04-26 12:54:05 -0600
commitbfdb52f83ca6ca3a0eb43ef2bd0f4f8193a06472 (patch)
treed272d3d9dca9e3864d38eaf4e7f0232a4e937b40 /gdb/compile/compile-cplus-symbols.c
parentf93c6e0a2ed1ad4f0a9bb8f38e859f3312c25282 (diff)
downloadgdb-bfdb52f83ca6ca3a0eb43ef2bd0f4f8193a06472.zip
gdb-bfdb52f83ca6ca3a0eb43ef2bd0f4f8193a06472.tar.gz
gdb-bfdb52f83ca6ca3a0eb43ef2bd0f4f8193a06472.tar.bz2
Handle encoding failures in Windows thread names
Internally at AdaCore, we noticed that the new Windows thread name code could fail. First, it might return a zero-length string, but in gdb conventions it should return nullptr instead. Second, an encoding failure could wind up showing replacement characters to the user; this is confusing and not useful; it's better to recognize such errors and simply discard the name. This patch makes both of these changes.
Diffstat (limited to 'gdb/compile/compile-cplus-symbols.c')
0 files changed, 0 insertions, 0 deletions