From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38101 invoked by alias); 14 Feb 2020 20:55:14 -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 36554 invoked by uid 89); 14 Feb 2020 20:55:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=linux-nat.c, UD:linux-nat.c, sk:linux_n, linuxnatc X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Feb 2020 20:55:13 +0000 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01EKp7CW092385 for ; Fri, 14 Feb 2020 15:55:11 -0500 Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y5x3ht3wd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 14 Feb 2020 15:55:11 -0500 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01EKnsMH003461 for ; Fri, 14 Feb 2020 20:55:10 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma01dal.us.ibm.com with ESMTP id 2y5bc0br57-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 14 Feb 2020 20:55:10 +0000 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01EKt7cH48431494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Feb 2020 20:55:07 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CBF2FC6055; Fri, 14 Feb 2020 20:55:07 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8BBDEC605A; Fri, 14 Feb 2020 20:55:07 +0000 (GMT) Received: from pedro.localdomain (unknown [9.85.204.156]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 14 Feb 2020 20:55:07 +0000 (GMT) Received: by pedro.localdomain (Postfix, from userid 1000) id A83E93C4FBF; Fri, 14 Feb 2020 17:55:03 -0300 (-03) From: Pedro Franco de Carvalho To: gdb-patches@sourceware.org Cc: ulrich.weigand@de.ibm.com, rcardoso@linux.ibm.com Subject: [PATCH v2 0/3] low_new_clone in linux-nat.c and powerpc watchpoint fixes Date: Fri, 14 Feb 2020 20:55:00 -0000 Message-Id: <20200214205443.1073579-1-pedromfc@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2020-02/txt/msg00586.txt.bz2 This patch series fixes some issues with hardware breakpoints and watchpoints in the powerpc linux native target. The first patch adds a new "low" method to linux-nat.c, which is needed in ppc-linux-nat.c. The second one is a small refactoring, and the third one is the fix itself. The differences compared to v1 are: * Changed the stopped_data_addres/stopped_by_watchpoint so the low_* versions so that we get the right stop_reason in the stop_reason field of lwp_info. We can then use stop_reason in low_prepare_to_resume as an additional indicator that the debug registers are stale, since some kernel configurations disable a watchpoint after a hit. * Instead of using an observer callback to clean-up the thread state, I did this in low_delete_thread, because I'm more confident that this will be called (some lwp_info object might not end up having an associated GDB thread object). Pedro Franco de Carvalho (3): Add low_new_clone method to linux_nat_target. [PowerPC] Move up some register access routines [PowerPC] Fix debug register issues in ppc-linux-nat gdb/linux-nat.c | 4 + gdb/linux-nat.h | 4 + gdb/ppc-linux-nat.c | 1584 ++++++++++++++++++++++++++++--------------- 3 files changed, 1058 insertions(+), 534 deletions(-) -- 2.24.1