aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-10-11 10:34:10 -0600
committerTom Tromey <tromey@adacore.com>2019-10-15 11:42:35 -0600
commit55dfc88f7edeeb926dd6e2cae54b3666f8df596e (patch)
tree5dd44c2a0d9d6dda9c3161ca6baecfee07cadc51 /gdb
parent96b49c5ec0b40d7b6a396fdde0f34f73988e2392 (diff)
downloadgdb-55dfc88f7edeeb926dd6e2cae54b3666f8df596e.zip
gdb-55dfc88f7edeeb926dd6e2cae54b3666f8df596e.tar.gz
gdb-55dfc88f7edeeb926dd6e2cae54b3666f8df596e.tar.bz2
Use %x when printing the TID
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/windows-nat.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 211b6a4..6ac32c5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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)
(windows_nat_target::store_registers): Rename "pid" to "tid".
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index df44994..a756913 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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);