Make windows_thread_info::name a unique_xmalloc_ptr
authorTom Tromey <tromey@adacore.com>
Wed, 8 Apr 2020 20:33:35 +0000 (14:33 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 8 Apr 2020 20:47:58 +0000 (14:47 -0600)
commit2950fdf7423a404f6ebc691606d04917fd68228a
tree3072d75a13dd55ea955f206737a2b75a5a547003
parent62fe396b1cba6b0c3d06b758d9f8254c6d538ad8
Make windows_thread_info::name a unique_xmalloc_ptr

This changes windows_thread_info::name to be a unique_xmalloc_ptr,
removing some manual memory management.

gdb/ChangeLog
2020-04-08  Tom Tromey  <tromey@adacore.com>

* windows-nat.c (handle_exception)
(windows_nat_target::thread_name): Update.
* nat/windows-nat.h (windows_thread_info): Remove destructor.
<name>: Now unique_xmalloc_ptr.
gdb/ChangeLog
gdb/nat/windows-nat.h
gdb/windows-nat.c
This page took 0.025641 seconds and 4 git commands to generate.