summaryrefslogtreecommitdiff
path: root/gdb/obsd-nat.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-07-29 13:16:30 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-07-29 14:14:10 -0700
commit527b21eaec686de9b6dc9278a7b7cedb3bde30ad (patch)
tree140b5454ab28427aec014c9b8c11a644ec46f5b4 /gdb/obsd-nat.c
parent42acc96479732c21d47fa0fb04e71e1eea5ee6d7 (diff)
downloadbinutils-gdb-527b21eaec686de9b6dc9278a7b7cedb3bde30ad.tar.gz
obsd-nat: Report both thread and PID in ::pid_to_str.
This improves the output of info threads when debugging multiple inferiors (e.g. after a fork with detach_on_fork disabled).
Diffstat (limited to 'gdb/obsd-nat.c')
-rw-r--r--gdb/obsd-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c
index 854fc9c1c94..044da080c16 100644
--- a/gdb/obsd-nat.c
+++ b/gdb/obsd-nat.c
@@ -37,7 +37,7 @@ std::string
obsd_nat_target::pid_to_str (ptid_t ptid)
{
if (ptid.lwp () != 0)
- return string_printf ("thread %ld", ptid.lwp ());
+ return string_printf ("thread %ld of process %d", ptid.lwp (), ptid.pid ());
return normal_pid_to_str (ptid);
}