]> 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, 6 Apr 2026 18:04:17 +0000 (19:04 +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 d1328375e554df1be7f6756ac9ffa94e7b5f07a9..507a25199c8e16ba4d9595e2f1a8dd0216527f89 100644 (file)
@@ -1235,7 +1235,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 ();