From: John Baldwin Date: Thu, 29 Jul 2021 20:16:30 +0000 (-0700) Subject: obsd-nat: Report both thread and PID in ::pid_to_str. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=527b21eaec686de9b6dc9278a7b7cedb3bde30ad;p=binutils-gdb.git 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). --- 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); }