]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Windows gdb: Dead code in windows_nat_target::do_initial_windows_stuff
authorPedro Alves <pedro@palves.net>
Tue, 2 May 2023 19:42:35 +0000 (20:42 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 19 May 2025 13:12:37 +0000 (14:12 +0100)
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 <tom@tromey.com>
Change-Id: I2fe460341b598ad293ea60d5f702b10cefc30711

gdb/windows-nat.c

index 0fee4ad5866e63b4fd60267b64e41c8d08cfbbab..092cb699a4ae58c5615cfe898038be86ac3820d0 100644 (file)
@@ -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 ();