diff options
author | Pedro Alves <palves@redhat.com> | 2015-11-17 15:17:45 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-11-17 15:19:42 +0000 |
commit | c3de4d92dfd0a1fa8d32a00bbb99de2a4ee0e140 (patch) | |
tree | b673a833f50f74082afdf49d80a0295afe44c04d /gdb/gdbserver/win32-i386-low.c | |
parent | 43499ea30db2a866412c86952c7e1d7b158d806f (diff) | |
download | gdb-c3de4d92dfd0a1fa8d32a00bbb99de2a4ee0e140.zip gdb-c3de4d92dfd0a1fa8d32a00bbb99de2a4ee0e140.tar.gz gdb-c3de4d92dfd0a1fa8d32a00bbb99de2a4ee0e140.tar.bz2 |
[C++/mingw] gdbserver casts
A set of obviously-needed C++ casts.
gdb/gdbserver/ChangeLog:
2015-11-17 Pedro Alves <palves@redhat.com>
* win32-i386-low.c (update_debug_registers_callback)
(win32_get_current_dr): Add cast.
* win32-low.c (thread_rec, delete_thread_info)
(continue_one_thread): Add casts.
(strwinerror): Cast FormatMessage argument to LPTSTR instead of
LPVOID.
(win32_create_inferior, suspend_one_thread): Add casts.
Diffstat (limited to 'gdb/gdbserver/win32-i386-low.c')
-rw-r--r-- | gdb/gdbserver/win32-i386-low.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbserver/win32-i386-low.c b/gdb/gdbserver/win32-i386-low.c index 7c22f05..686521f 100644 --- a/gdb/gdbserver/win32-i386-low.c +++ b/gdb/gdbserver/win32-i386-low.c @@ -45,7 +45,7 @@ update_debug_registers_callback (struct inferior_list_entry *entry, void *pid_p) { struct thread_info *thr = (struct thread_info *) entry; - win32_thread_info *th = inferior_target_data (thr); + win32_thread_info *th = (win32_thread_info *) inferior_target_data (thr); int pid = *(int *) pid_p; /* Only update the threads of this process. */ @@ -89,7 +89,8 @@ x86_dr_low_set_control (unsigned long control) static DWORD64 win32_get_current_dr (int dr) { - win32_thread_info *th = inferior_target_data (current_thread); + win32_thread_info *th + = (win32_thread_info *) inferior_target_data (current_thread); win32_require_context (th); |