Reword the string description of native FreeBSD ptids.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 21 Jan 2016 17:51:35 +0000 (09:51 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 22 Jan 2016 16:47:15 +0000 (08:47 -0800)
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
gdb/fbsd-nat.c

index 6da544e..057c14f 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-22  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
+
 2016-01-22  Yao Qi  <yao.qi@linaro.org>
 
        * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
index e7ca0e6..bdf078e 100644 (file)
@@ -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;
     }