From 6d81aad46f5eebb3b5723f75ea2f367463fa396d Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 2 May 2023 20:42:35 +0100 Subject: [PATCH] Windows gdb: Dead code in windows_nat_target::do_initial_windows_stuff In windows_nat_target::do_initial_windows_stuff, there's no point in setting windows_process.current_event.dwProcessId. It's a nop, given the following memset. Approved-By: Tom Tromey Change-Id: I2fe460341b598ad293ea60d5f702b10cefc30711 --- gdb/windows-nat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 0fee4ad5866..092cb699a4a 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1783,7 +1783,6 @@ windows_nat_target::do_initial_windows_stuff (DWORD pid, bool attaching) windows_process.cygwin_load_start = 0; windows_process.cygwin_load_end = 0; #endif - windows_process.current_event.dwProcessId = pid; memset (&windows_process.current_event, 0, sizeof (windows_process.current_event)); inf = current_inferior (); -- 2.47.2