diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-01-21 09:51:35 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-01-22 08:47:15 -0800 |
commit | b2bae2f79b11a87af3dbc2a6ca3c0c4987ecfbba (patch) | |
tree | 3932839908dd6fada1f9dca12b6823f36b2f48e8 /gdb/fbsd-nat.c | |
parent | 99e8eb11cfcdde8cba6755ed4613c3cb079dfaa4 (diff) | |
download | gdb-b2bae2f79b11a87af3dbc2a6ca3c0c4987ecfbba.zip gdb-b2bae2f79b11a87af3dbc2a6ca3c0c4987ecfbba.tar.gz gdb-b2bae2f79b11a87af3dbc2a6ca3c0c4987ecfbba.tar.bz2 |
Reword the string description of native FreeBSD ptids.
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.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index e7ca0e6..bdf078e 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -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; } |