Reword the string description of native FreeBSD ptids.
Commit Message
The prior format led to confusing messages when threads were created
or added such as "[New process 14757, LWP 100537]". The new format
reports this as "[New LWP 100434 of process 15652]".
gdb/ChangeLog:
* fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
---
gdb/ChangeLog | 4 ++++
gdb/fbsd-nat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
Comments
On 01/21/2016 06:50 PM, John Baldwin wrote:
> The prior format led to confusing messages when threads were created
> or added such as "[New process 14757, LWP 100537]". The new format
> reports this as "[New LWP 100434 of process 15652]".
>
> gdb/ChangeLog:
>
> * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
OK.
Thanks,
Pedro Alves
@@ -1,3 +1,7 @@
+2016-01-21 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
+
2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
* disasm.c (maybe_add_dis_line_entry): Rename to...
@@ -303,7 +303,7 @@ fbsd_pid_to_str (struct target_ops *ops, ptid_t ptid)
static char buf[64];
int pid = ptid_get_pid (ptid);
- xsnprintf (buf, sizeof buf, "process %d, LWP %d", pid, lwp);
+ xsnprintf (buf, sizeof buf, "LWP %d of process %d", lwp, pid);
return buf;
}