From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5784 invoked by alias); 17 Apr 2008 09:52:59 -0000 Received: (qmail 5766 invoked by uid 22791); 17 Apr 2008 09:52:58 -0000 X-Spam-Check-By: sourceware.org Received: from ns1.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Apr 2008 09:52:34 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 2E32D408F0 for ; Thu, 17 Apr 2008 11:52:32 +0200 (CEST) From: Andreas Schwab To: gdb-patches@sourceware.org Subject: Re: [rfc, rfa/doc] Multi-threaded watchpoint improvements References: <20070916183949.GA23966@caradoc.them.org> <20071001002015.GA15835@caradoc.them.org> <20080416224910.GA3716@caradoc.them.org> <20080416231831.GB6274@caradoc.them.org> X-Yow: QUIET!! I'm being CREATIVE!! Is it GREAT yet? It's s'posed to SMOKEY THE BEAR... Date: Thu, 17 Apr 2008 10:17:00 -0000 In-Reply-To: <20080416231831.GB6274@caradoc.them.org> (Daniel Jacobowitz's message of "Wed, 16 Apr 2008 19:18:31 -0400") Message-ID: User-Agent: Gnus/5.110008 (No Gnus v0.8) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 X-SW-Source: 2008-04/txt/msg00328.txt.bz2 Daniel Jacobowitz writes: > On Thu, Apr 17, 2008 at 01:04:56AM +0200, Andreas Schwab wrote: >> infrun: infwait_nonstep_watch_state >> infrun: TARGET_WAITKIND_STOPPED >> infrun: stop_pc = 0x100004b0 >> infrun: random signal 5 > > Thanks, I can see the problem. stepped_after_stopped_by_watchpoint is > set, but nothing is using that to indicate that we should report the > watchpoint. Looking closer, it is actually a kernel bug. PTRACE_GETSIGINFO is not emulated for 32-bit processes, so that si_addr is set to the upper half of the address, which is of course zero. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."