windows-nat: Don't use ternary conditional operator in get_windows_debug_event
gdb/ChangeLog: 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> * windows-nat.c (get_windows_debug_event): Don't use ternary conditional operator.
This commit is contained in:
parent
0e5fabeb2c
commit
776704b917
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
|
||||
|
||||
* windows-nat.c (get_windows_debug_event): Don't use ternary
|
||||
conditional operator.
|
||||
|
||||
2015-04-21 Pierre Muller <muller@sourceware.org>
|
||||
|
||||
PR pascal/17815
|
||||
|
|
|
@ -1502,7 +1502,9 @@ get_windows_debug_event (struct target_ops *ops,
|
|||
{
|
||||
inferior_ptid = ptid_build (current_event.dwProcessId, 0,
|
||||
retval);
|
||||
current_thread = th ?: thread_rec (current_event.dwThreadId, TRUE);
|
||||
current_thread = th;
|
||||
if (!current_thread)
|
||||
current_thread = thread_rec (current_event.dwThreadId, TRUE);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in a new issue