From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112846 invoked by alias); 22 Nov 2017 11:16:27 -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 112832 invoked by uid 89); 22 Nov 2017 11:16:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KB_WAM_FROM_NAME_SINGLEWORD,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Hx-languages-length:857, our, metal 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 ESMTP; Wed, 22 Nov 2017 11:16:21 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D23A4903F; Wed, 22 Nov 2017 11:16:20 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89A685D6A5; Wed, 22 Nov 2017 11:16:18 +0000 (UTC) Subject: Re: [Ada 1/6] watchpoint regression debugging with remote protocol (bare metal) To: Joel Brobecker , gdb-patches@sourceware.org References: <20171121222923.8951-1-brobecker@adacore.com> <20171121222923.8951-2-brobecker@adacore.com> Cc: Xavier Roirand From: Pedro Alves Message-ID: Date: Wed, 22 Nov 2017 11:16:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20171121222923.8951-2-brobecker@adacore.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-11/txt/msg00485.txt.bz2 On 11/21/2017 10:29 PM, Joel Brobecker wrote: > We have noticed a regression in our watchpoint support when debugging > through the remote protocol a program running on a bare metal platform, > when the program uses what we call the Ravenscar Runtime. ... > > For the record, the commit which caused the regression is: > > commit 799a2abe613be0645b84f5aaa050f2f91e6ae3f7 > Date: Mon Nov 30 16:05:16 2015 +0000 > Subject: remote: stop reason and watchpoint data address per thread > ... > The way we chose to fix the issue is by making sure that the > ravenscar-thread layer doesn't let the remote layer be called > with inferior_ptid being set to a thread that the remote layer > does not know about. FWIW, this looks like the right solution to me. Thanks, Pedro Alves