From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 431 invoked by alias); 3 Apr 2008 09:01:37 -0000 Received: (qmail 32558 invoked by uid 22791); 3 Apr 2008 09:01:34 -0000 X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 03 Apr 2008 09:01:14 +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 D36273FFC4; Thu, 3 Apr 2008 11:01:11 +0200 (CEST) From: Andreas Schwab To: Nick Roberts Cc: gdb@sourceware.org Subject: Re: Multiple breakpoints References: <18420.39684.185853.891083@kahikatea.snap.net.nz> X-Yow: Uh-oh!! I'm having TOO MUCH FUN!! Date: Thu, 03 Apr 2008 09:01:00 -0000 In-Reply-To: <18420.39684.185853.891083@kahikatea.snap.net.nz> (Nick Roberts's message of "Thu\, 3 Apr 2008 20\:53\:24 +1200") 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: 2008-04/txt/msg00017.txt.bz2 Nick Roberts writes: > If I set a breakpoint on TRY_CATCH in gdb_evaluate_expression, I get > multiple breakpoints: > > gdb_evaluate_expression (struct expression *exp, struct value **value) > { > volatile struct gdb_exception except; > > -> TRY_CATCH (except, RETURN_MASK_ERROR) > { > *value = evaluate_expression(exp); > } > > if (except.reason < 0) > return 0; > return 1; > } > > where -> shows the breakpoint location. > > > Is this to be expected? The assembler looks like this: TRY_CATCH expands to a loop, probably the loop condition has been duplicated by the compiler. 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."