[pushed] Minor boolean fix in windows-nat.c

Message ID 20211004191426.1261654-1-tromey@adacore.com
State New
Headers show
Series
  • [pushed] Minor boolean fix in windows-nat.c
Related show

Commit Message

Lancelot SIX via Gdb-patches Oct. 4, 2021, 7:14 p.m.
I noticed a spot in windows-nat.c that used '1' rather than the more
appropriate 'true'.  This patch fixes it.
---
 gdb/windows-nat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Patch

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index a052efe654c..736b794fc82 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1492,7 +1492,7 @@  windows_nat_target::get_windows_debug_event (int pid,
 
       ptid_t ptid (current_event.dwProcessId, thread_id);
       windows_thread_info *th = thread_rec (ptid, INVALIDATE_CONTEXT);
-      th->reload_context = 1;
+      th->reload_context = true;
 
       return thread_id;
     }