From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24145 invoked by alias); 12 Oct 2005 14:33:33 -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 24124 invoked by uid 22791); 12 Oct 2005 14:33:30 -0000 Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 12 Oct 2005 14:33:30 +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 D5159E422 for ; Wed, 12 Oct 2005 16:33:27 +0200 (CEST) From: Andreas Schwab To: gdb-patches@sources.redhat.com Subject: Re: Broken cast in linux-thread-db References: <20051012142427.GA21308@nevyn.them.org> X-Yow: I guess we can live on his POT FARM in HADES!! Date: Wed, 12 Oct 2005 14:33:00 -0000 In-Reply-To: <20051012142427.GA21308@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 12 Oct 2005 10:24:27 -0400") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-10/txt/msg00106.txt.bz2 Daniel Jacobowitz writes: > I think the current behavior is actually more correct despite any > warning. GCC _always_ sign extends, which is definitely wrong here. > Were you fixing an observed problem? If notify.u.bptaddr has the high bit set it will be sign extended, but the breakpoint address when the thread event breakpoint is hit will be zero extended, so they don't match and the breakpoint is not recognized. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."