From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8155 invoked by alias); 15 Jun 2004 15:22:00 -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 8115 invoked from network); 15 Jun 2004 15:21:53 -0000 Received: from unknown (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org with SMTP; 15 Jun 2004 15:21:53 -0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.12.10/8.12.10) with ESMTP id i5FFHIfV021262; Tue, 15 Jun 2004 15:17:18 GMT Received: from d12ml068.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i5FFHHX6188538; Tue, 15 Jun 2004 17:17:17 +0200 Subject: Re: [RFC]: x86 threaded watchpoint support [2/3] To: jjohnstn@redhat.com Cc: gdb-patches@sources.redhat.com, eliz@gnu.org Message-ID: From: Ulrich Weigand Date: Tue, 15 Jun 2004 15:22:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-SW-Source: 2004-06/txt/msg00350.txt.bz2 Jeff Johnston wrote: >The change is needed because with the threading model, you can have >multiple events to process. So, if you check your watchpoint values, >all of them may have changed but you end up reporting an invalid thread >location. For example, I was getting watchpoints changing at the same >time of a new thread event (it couldn't discern). Isn't it enough to know whether you got the SIGTRAP because of a (any) hardware watchpoint, or for some other reason (e.g. new thread event)? *This* information is available on s390, and as of this patch: http://sources.redhat.com/ml/gdb-patches/2004-05/msg00290.html it is actually used to prevent bpstat_stop_status to recognize a watchpoint event unless the kernel says it was a watchpoint ... Do you have more details about n what situation is this still not enough? Mit freundlichen Gruessen / Best Regards Ulrich Weigand -- Dr. Ulrich Weigand Linux for S/390 Design & Development IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com