diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-07-29 13:16:30 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-07-29 14:14:10 -0700 |
commit | 527b21eaec686de9b6dc9278a7b7cedb3bde30ad (patch) | |
tree | 140b5454ab28427aec014c9b8c11a644ec46f5b4 | |
parent | 42acc96479732c21d47fa0fb04e71e1eea5ee6d7 (diff) | |
download | gdb-527b21eaec686de9b6dc9278a7b7cedb3bde30ad.zip gdb-527b21eaec686de9b6dc9278a7b7cedb3bde30ad.tar.gz gdb-527b21eaec686de9b6dc9278a7b7cedb3bde30ad.tar.bz2 |
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).
-rw-r--r-- | gdb/obsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c index 854fc9c..044da08 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); } |