diff options
author | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:33:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:47:57 -0600 |
commit | 62fe396b1cba6b0c3d06b758d9f8254c6d538ad8 (patch) | |
tree | afd1d84fb940cab90ad9dc2affc968e82762b35d /gdbserver | |
parent | e9534bd257ac9ea2f7921e8000d27c5dc4477b4e (diff) | |
download | gdb-62fe396b1cba6b0c3d06b758d9f8254c6d538ad8.zip gdb-62fe396b1cba6b0c3d06b758d9f8254c6d538ad8.tar.gz gdb-62fe396b1cba6b0c3d06b758d9f8254c6d538ad8.tar.bz2 |
Change two windows_thread_info members to "bool"
This changes a couple of fields of windows_thread_info to have type
"bool". It also updates the comment of another field, to clarify the
possible values it can hold.
gdb/ChangeLog
2020-04-08 Tom Tromey <tromey@adacore.com>
* windows-nat.c (thread_rec)
(windows_nat_target::fetch_registers): Update.
* nat/windows-nat.h (struct windows_thread_info) <suspended>:
Update comment.
<debug_registers_changed, reload_context>: Now bool.
gdbserver/ChangeLog
2020-04-08 Tom Tromey <tromey@adacore.com>
* win32-i386-low.c (update_debug_registers)
(i386_prepare_to_resume, i386_thread_added): Update.
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdbserver/win32-i386-low.cc | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index be2f767..25b5768 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2020-04-08 Tom Tromey <tromey@adacore.com> + * win32-i386-low.c (update_debug_registers) + (i386_prepare_to_resume, i386_thread_added): Update. + +2020-04-08 Tom Tromey <tromey@adacore.com> + * win32-low.c (child_add_thread): Use new. (delete_thread_info): Use delete. diff --git a/gdbserver/win32-i386-low.cc b/gdbserver/win32-i386-low.cc index 29ee49f..1b78cf9 100644 --- a/gdbserver/win32-i386-low.cc +++ b/gdbserver/win32-i386-low.cc @@ -44,7 +44,7 @@ update_debug_registers (thread_info *thread) /* The actual update is done later just before resuming the lwp, we just mark that the registers need updating. */ - th->debug_registers_changed = 1; + th->debug_registers_changed = true; } /* Update the inferior's debug register REGNUM from STATE. */ @@ -253,14 +253,14 @@ i386_prepare_to_resume (windows_thread_info *th) FIXME: should we set dr6 also ?? */ th->context.Dr7 = dr->dr_control_mirror; - th->debug_registers_changed = 0; + th->debug_registers_changed = false; } } static void i386_thread_added (windows_thread_info *th) { - th->debug_registers_changed = 1; + th->debug_registers_changed = true; } static void |