aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-30 17:02:01 +0100
committerPedro Alves <palves@redhat.com>2015-04-01 15:21:47 +0100
commit1176ecec7082b4d6b4a3d965ef77726899c9eda2 (patch)
treee68d922a1f3ad6aeebec1b0905daa25e2180c03d /gdb/infrun.c
parentde1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85 (diff)
downloadgdb-1176ecec7082b4d6b4a3d965ef77726899c9eda2.zip
gdb-1176ecec7082b4d6b4a3d965ef77726899c9eda2.tar.gz
gdb-1176ecec7082b4d6b4a3d965ef77726899c9eda2.tar.bz2
Make print_target_wait_results print the whole ptid
Makes "set debug infrun 1" a bit clearer. Before: infrun: target_wait (-1, status) = infrun: 6299 [Thread 0x7ffff7fc1700 (LWP 6340)], after: infrun: target_wait (-1.0.0, status) = infrun: 7233.7237.0 [Thread 0x7ffff7fc1700 (LWP 7237)], gdb/ChangeLog: 2015-04-01 Pedro Alves <palves@redhat.com> * infrun.c (print_target_wait_results): Print all the ptid elements.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index f366a57..4b38fce 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3021,14 +3021,19 @@ print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid,
is set. */
fprintf_unfiltered (tmp_stream,
- "infrun: target_wait (%d", ptid_get_pid (waiton_ptid));
+ "infrun: target_wait (%d.%ld.%ld",
+ ptid_get_pid (waiton_ptid),
+ ptid_get_lwp (waiton_ptid),
+ ptid_get_tid (waiton_ptid));
if (ptid_get_pid (waiton_ptid) != -1)
fprintf_unfiltered (tmp_stream,
" [%s]", target_pid_to_str (waiton_ptid));
fprintf_unfiltered (tmp_stream, ", status) =\n");
fprintf_unfiltered (tmp_stream,
- "infrun: %d [%s],\n",
+ "infrun: %d.%ld.%ld [%s],\n",
ptid_get_pid (result_ptid),
+ ptid_get_lwp (result_ptid),
+ ptid_get_tid (result_ptid),
target_pid_to_str (result_ptid));
fprintf_unfiltered (tmp_stream,
"infrun: %s\n",