Use %x when printing the TID
authorTom Tromey <tromey@adacore.com>
Fri, 11 Oct 2019 16:34:10 +0000 (10:34 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 15 Oct 2019 17:42:35 +0000 (11:42 -0600)
One spot in windows-nat.c uses %ld to print the TID, but all other
spots use %x, as does the infrun logging.  This makes it unnecessarily
hard to tell which other log messages correspond to this one.  This
patch changes the one outlier to use %x.

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

* windows-nat.c (windows_nat_target::resume): Use %x when logging
TID.

Change-Id: Ic66efeb8a7ec08e7fb007320318f51acbf976734

gdb/ChangeLog
gdb/windows-nat.c

index 211b6a49cf911d0e6cc98ca1c2c4cdd20974be8c..6ac32c513adfc689ef711750c367ba9e5a132122 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-15  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (windows_nat_target::resume): Use %x when logging
+       TID.
+
 2019-10-15  Tom Tromey  <tromey@adacore.com>
 
        * windows-nat.c (windows_nat_target::fetch_registers)
index df44994c95a8fcf5d94bc6e3be531becca431496..a756913cabf63d3f260f8e9d50f0c22ed89553dd 100644 (file)
@@ -1447,8 +1447,8 @@ windows_nat_target::resume (ptid_t ptid, int step, enum gdb_signal sig)
 
   last_sig = GDB_SIGNAL_0;
 
-  DEBUG_EXEC (("gdb: windows_resume (pid=%d, tid=%ld, step=%d, sig=%d);\n",
-              ptid.pid (), ptid.tid (), step, sig));
+  DEBUG_EXEC (("gdb: windows_resume (pid=%d, tid=0x%x, step=%d, sig=%d);\n",
+              ptid.pid (), (unsigned) ptid.tid (), step, sig));
 
   /* Get context for currently selected thread.  */
   th = thread_rec (inferior_ptid.tid (), FALSE);
This page took 0.032222 seconds and 4 git commands to generate.