]> 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, 9 Jun 2025 17:09:11 +0000 (18:09 +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 939c5813aa7958c84fd6b3e9d75a96011217ee17..85a8c5070f7f6fbae67f209287289b59e8b8860d 100644 (file)
@@ -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 ();