aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2015-04-14 19:42:07 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2015-04-22 18:30:52 +0100
commit776704b9178cce5741e96555ceca514d84824815 (patch)
tree68c5dbeed667a7ecaa6bc029a28e19b731bbc53d /gdb/windows-nat.c
parent0e5fabeb2c4b90857403995e14550210fe1cae71 (diff)
downloadgdb-776704b9178cce5741e96555ceca514d84824815.zip
gdb-776704b9178cce5741e96555ceca514d84824815.tar.gz
gdb-776704b9178cce5741e96555ceca514d84824815.tar.bz2
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.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index fd31083..dea4368 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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: