From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 336 invoked by alias); 1 Apr 2015 14:24:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 319 invoked by uid 89); 1 Apr 2015 14:24:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 01 Apr 2015 14:24:37 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 02AAC9177E for ; Wed, 1 Apr 2015 14:24:36 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t31EOYM9009896 for ; Wed, 1 Apr 2015 10:24:35 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed] Make print_target_wait_results print the whole ptid Date: Wed, 01 Apr 2015 14:24:00 -0000 Message-Id: <1427898274-6699-1-git-send-email-palves@redhat.com> X-SW-Source: 2015-04/txt/msg00052.txt.bz2 Makes "set debug infrun 1" a bit clearer. Before: infrun: target_wait (-1, status) = infrun: 6299 [Thread 0x7ffff7fc1700 (LWP 6340)], after: infrun: target_wait (-1.0.0, status) = infrun: 7233.7237.0 [Thread 0x7ffff7fc1700 (LWP 7237)], gdb/ChangeLog: 2015-04-01 Pedro Alves * infrun.c (print_target_wait_results): Print all the ptid elements. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f5adaf8..7f9cc43 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-04-01 Pedro Alves + * infrun.c (print_target_wait_results): Print all the ptid + elements. + +2015-04-01 Pedro Alves + * infrun.c (keep_going): Also discard cleanups if inserting breakpoints fails. diff --git a/gdb/infrun.c b/gdb/infrun.c index f366a57..4b38fce 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3021,14 +3021,19 @@ print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid, is set. */ fprintf_unfiltered (tmp_stream, - "infrun: target_wait (%d", ptid_get_pid (waiton_ptid)); + "infrun: target_wait (%d.%ld.%ld", + ptid_get_pid (waiton_ptid), + ptid_get_lwp (waiton_ptid), + ptid_get_tid (waiton_ptid)); if (ptid_get_pid (waiton_ptid) != -1) fprintf_unfiltered (tmp_stream, " [%s]", target_pid_to_str (waiton_ptid)); fprintf_unfiltered (tmp_stream, ", status) =\n"); fprintf_unfiltered (tmp_stream, - "infrun: %d [%s],\n", + "infrun: %d.%ld.%ld [%s],\n", ptid_get_pid (result_ptid), + ptid_get_lwp (result_ptid), + ptid_get_tid (result_ptid), target_pid_to_str (result_ptid)); fprintf_unfiltered (tmp_stream, "infrun: %s\n", -- 1.9.3