Rename pid -> tid in windows-nat.c
authorTom Tromey <tromey@adacore.com>
Thu, 10 Oct 2019 17:33:16 +0000 (11:33 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 15 Oct 2019 17:42:35 +0000 (11:42 -0600)
A couple of spots in windows-nat.c used the name "pid" to refer to the
thread ID.  I found this confusing, so this patch changes the names.

gdb/ChangeLog
2019-10-15  Tom Tromey  <tromey@adacore.com>

* windows-nat.c (windows_nat_target::fetch_registers)
(windows_nat_target::store_registers): Rename "pid" to "tid".

Change-Id: Ia1a447e8da822d01ad94a5ca3760342bbdc0e66c

gdb/ChangeLog
gdb/windows-nat.c

index e52ec3f307c791c0437a4a699274c9b9f35c62fd..211b6a49cf911d0e6cc98ca1c2c4cdd20974be8c 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-15  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (windows_nat_target::fetch_registers)
+       (windows_nat_target::store_registers): Rename "pid" to "tid".
+
 2019-10-15  Tom Tromey  <tromey@adacore.com>
 
        * gdbarch.h, gdbarch.c: Rebuild.
index 607b2e8cb97b5cba33a473682e7fb2e68ef4975c..df44994c95a8fcf5d94bc6e3be531becca431496 100644 (file)
@@ -590,8 +590,8 @@ windows_fetch_one_register (struct regcache *regcache,
 void
 windows_nat_target::fetch_registers (struct regcache *regcache, int r)
 {
-  DWORD pid = regcache->ptid ().tid ();
-  windows_thread_info *th = thread_rec (pid, TRUE);
+  DWORD tid = regcache->ptid ().tid ();
+  windows_thread_info *th = thread_rec (tid, TRUE);
 
   /* Check if TH exists.  Windows sometimes uses a non-existent
      thread id in its events.  */
@@ -660,8 +660,8 @@ windows_store_one_register (const struct regcache *regcache,
 void
 windows_nat_target::store_registers (struct regcache *regcache, int r)
 {
-  DWORD pid = regcache->ptid ().tid ();
-  windows_thread_info *th = thread_rec (pid, TRUE);
+  DWORD tid = regcache->ptid ().tid ();
+  windows_thread_info *th = thread_rec (tid, TRUE);
 
   /* Check if TH exists.  Windows sometimes uses a non-existent
      thread id in its events.  */
This page took 0.029607 seconds and 4 git commands to generate.