From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30102 invoked by alias); 11 Jul 2007 09:00:06 -0000 Received: (qmail 29789 invoked by uid 22791); 11 Jul 2007 09:00:05 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jul 2007 09:00:01 +0000 Received: from Relay1.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 D221D12561; Wed, 11 Jul 2007 10:59:58 +0200 (CEST) From: Andreas Schwab To: Atsushi Nemoto Cc: gdb@sourceware.org Subject: Re: How to avoid stepping inside libpthread References: <20070711.151820.55513191.nemoto@toshiba-tops.co.jp> X-Yow: .. the HIGHWAY is made out of LIME JELLO and my HONDA is a barbequed OYSTER! Yum! Date: Wed, 11 Jul 2007 09:00:00 -0000 In-Reply-To: <20070711.151820.55513191.nemoto@toshiba-tops.co.jp> (Atsushi Nemoto's message of "Wed\, 11 Jul 2007 15\:18\:20 +0900 \(JST\)") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) 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-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00091.txt.bz2 Atsushi Nemoto writes: > There is a LL/SC loop (atomic_decrement_and_test(&__nptl_nthreads)) > after the 0x2ab0ae88 in start_thread(), so it is not wonder the single > stepping never ends (SC always fail due to a breakpoint exception). > > > Are there any way to avoid falling into such situations? See deal_with_atomic_sequence in rs6000-tdep.c, which tries to solve the same issue. 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."