From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5503 invoked by alias); 14 Feb 2005 12:04:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5319 invoked from network); 14 Feb 2005 12:03:51 -0000 Received: from unknown (HELO miranda.se.axis.com) (212.209.10.220) by sourceware.org with SMTP; 14 Feb 2005 12:03:51 -0000 Received: from [10.92.19.1] (ironmaiden.se.axis.com [10.92.19.1]) by miranda.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id j1ED2ox8004537; Mon, 14 Feb 2005 14:02:51 +0100 Message-ID: <4210936A.2080408@axis.com> Date: Mon, 14 Feb 2005 16:17:00 -0000 From: Orjan Friberg Organization: Axis Communications User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb-patches@sources.redhat.com Subject: Re: [gdbserver/rfa] CRIS/CRISv32 gdbserver support (part 2) References: <41E7969F.3010009@axis.com> <20050130045359.GC25185@nevyn.them.org> <41FF9274.7030700@axis.com> In-Reply-To: <41FF9274.7030700@axis.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-02/txt/msg00128.txt.bz2 Orjan Friberg wrote: >> >> What to do about the threaded case? GDB is having so much trouble >> getting it right that I'd like to make sure gdbserver does from the >> start. >> >> I guess this can be handled completely in the linux-low wrapper >> functions by switching the current thread and setting watchpoints for >> each. I think that is correct for all Linux targets using hardware >> watchpoints, because of the nature of Linux threading. > > > For CRISv32, there might be an additional problem lurking in the > shadows: we treat the watchpoint registers as global (i.e., only one > process at a time can use them, and thus they are not saved/restored on > context switches etc). > > Anyway, is this something you want resolved before I commit the > CRIS/CRISv32 support? (Here's an updated ChangeLog entry and updated > patches if not.) Two week ping. (If you want the multi-threaded watchpoint support issue resolved before the commit please elaborate, if possible, on what needs to be done.) -- Orjan Friberg Axis Communications