From: Pedro Alves Date: Tue, 2 May 2023 19:42:35 +0000 (+0100) Subject: Windows gdb: Dead code in windows_nat_target::do_initial_windows_stuff X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93599e89cc43c50cc33e59db00793f54c65c1e34;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 939c5813aa7..85a8c5070f7 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1787,7 +1787,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 ();