From patchwork Thu Jan 21 18:50:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 10508 Received: (qmail 28616 invoked by alias); 21 Jan 2016 18:55:17 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 28604 invoked by uid 89); 21 Jan 2016 18:55:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=HX-Greylist:succeeded, HX-Greylist:SMTP, HX-Greylist:AUTH, Hx-languages-length:1334 X-HELO: bigwig.baldwin.cx Received: from bigwig.baldwin.cx (HELO bigwig.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 21 Jan 2016 18:55:15 +0000 Received: from ralph.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 9393BB97D for ; Thu, 21 Jan 2016 13:55:12 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH] Reword the string description of native FreeBSD ptids. Date: Thu, 21 Jan 2016 10:50:07 -0800 Message-Id: <1453402207-15868-1-git-send-email-jhb@FreeBSD.org> X-IsSubscribed: yes 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(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 45d8ef9..008a6cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-01-21 John Baldwin + + * fbsd-nat.c (fbsd_pid_to_str): Adjust string format. + 2016-01-21 Andrew Burgess * disasm.c (maybe_add_dis_line_entry): Rename to... 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; }