From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32696 invoked by alias); 30 Dec 2009 08:50:51 -0000 Received: (qmail 32687 invoked by uid 22791); 30 Dec 2009 08:50:50 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail10.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Dec 2009 08:50:43 +0000 Received: from totara (133.31.255.123.dynamic.snap.net.nz [123.255.31.133]) by viper.snap.net.nz (Postfix) with ESMTP id ACC362F40BB; Wed, 30 Dec 2009 21:50:40 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id E156FC167; Wed, 30 Dec 2009 21:48:57 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19259.5113.884675.579179@totara.tehura.co.nz> Date: Wed, 30 Dec 2009 08:50:00 -0000 To: Joel Brobecker Cc: gdb@sourceware.org Subject: Re: [Bug:cli] Loading user-defined function generates an internal error In-Reply-To: <20091230054617.GA548@adacore.com> References: <19258.59036.731093.439412@totara.tehura.co.nz> <20091230054617.GA548@adacore.com> From: nickrob@snap.net.nz (Nick Roberts) 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: 2009-12/txt/msg00177.txt.bz2 > > If the user-defined function below is put in a file user.cmd, say, then in > > internal error is generated upon loading it: > > I can reproduce too. Have you tried debugging the problem? It's due to this change: 2009-11-18 Vladimir Prus * cli/cli-script.c (process_next_line): Recognize 'end' even when the line has leading space and we're not parsing commands. -- Nick http://users.snap.net.nz/~nickrob