diff options
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdbserver/win32-low.cc | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 3923429..be2f767 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2020-04-08 Tom Tromey <tromey@adacore.com> + * win32-low.c (child_add_thread): Use new. + (delete_thread_info): Use delete. + +2020-04-08 Tom Tromey <tromey@adacore.com> + * win32-low.h (struct windows_thread_info): Remove. 2020-04-08 Tom Tromey <tromey@adacore.com> diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index 55e8322..1284ed1 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -212,10 +212,7 @@ child_add_thread (DWORD pid, DWORD tid, HANDLE h, void *tlb) if ((th = thread_rec (ptid, FALSE))) return th; - th = XCNEW (windows_thread_info); - th->tid = tid; - th->h = h; - th->thread_local_base = (CORE_ADDR) (uintptr_t) tlb; + th = new windows_thread_info (tid, h, (CORE_ADDR) (uintptr_t) tlb); add_thread (ptid, th); @@ -233,7 +230,7 @@ delete_thread_info (thread_info *thread) remove_thread (thread); CloseHandle (th->h); - free (th); + delete th; } /* Delete a thread from the list of threads. */ |