aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2023-05-02 20:42:35 +0100
committerPedro Alves <pedro@palves.net>2024-05-08 00:39:54 +0100
commitb93d04b7778d1177bb863dbf03e3e656b87acecc (patch)
tree33d95fcf4e019c877daccf195e54024b2538842d
parentd68f983f88c7469befddcf221228070990cf25e1 (diff)
downloadfsf-binutils-gdb-b93d04b7778d1177bb863dbf03e3e656b87acecc.zip
fsf-binutils-gdb-b93d04b7778d1177bb863dbf03e3e656b87acecc.tar.gz
fsf-binutils-gdb-b93d04b7778d1177bb863dbf03e3e656b87acecc.tar.bz2
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. Change-Id: I2fe460341b598ad293ea60d5f702b10cefc30711
-rw-r--r--gdb/windows-nat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 70f955d..5578ae2 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1900,7 +1900,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 ();