From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12260 invoked by alias); 19 Jul 2012 07:59:17 -0000 Received: (qmail 12250 invoked by uid 22791); 19 Jul 2012 07:59:15 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 07:59:02 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Wd7275FLzz4KK35; Thu, 19 Jul 2012 10:00:31 +0200 (CEST) Received: from igel.home (ppp-88-217-104-196.dynamic.mnet-online.de [88.217.104.196]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Wd70N3VwnzbblX; Thu, 19 Jul 2012 09:59:00 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 2893BCA2A4; Thu, 19 Jul 2012 09:59:00 +0200 (CEST) From: Andreas Schwab To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [commit] New Ada testcase for breakpoints on operators. References: <1330720677-10606-1-git-send-email-brobecker@adacore.com> X-Yow: I want you to MEMORIZE the collected poems of EDNA ST VINCENT MILLAY.. BACKWARDS!! Date: Thu, 19 Jul 2012 07:59:00 -0000 In-Reply-To: <1330720677-10606-1-git-send-email-brobecker@adacore.com> (Joel Brobecker's message of "Fri, 2 Mar 2012 12:37:57 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-07/txt/msg00322.txt.bz2 Joel Brobecker writes: > +# Set breakpoints for all operators, using just the operator name in quotes. > + > +foreach op { "+" "-" } { > + set op_re [string_to_regexp $op] > + gdb_test "break \"$op\"" \ > + "Breakpoint $decimal at $hex: \"$op_re\"\. \\(2 locations\\)" > +} (gdb) break "+" Breakpoint 2 at 0x100018cc: "+". (4 locations) (gdb) FAIL: gdb.ada/operator_bp.exp: break "+" break "-" Breakpoint 3 at 0x100018f4: "-". (4 locations) (gdb) FAIL: gdb.ada/operator_bp.exp: break "-" break "*" > +foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} { > + set op_re [string_to_regexp $op] > + gdb_test "break \"$op\"" \ > + "Breakpoint $decimal at $hex: file .*ops.adb, line $decimal." > +} break "mod" Breakpoint 6 at 0x10001514: "mod". (2 locations) (gdb) FAIL: gdb.ada/operator_bp.exp: break "mod" Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."