From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24603 invoked by alias); 15 Feb 2006 04:48:42 -0000 Received: (qmail 24591 invoked by uid 22791); 15 Feb 2006 04:48:42 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Feb 2006 04:48:38 +0000 Received: from kahikatea.snap.net.nz (p202-124-114-107.snap.net.nz [202.124.114.107]) by viper.snap.net.nz (Postfix) with ESMTP id EEF78741375; Wed, 15 Feb 2006 17:48:33 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id BC3BB8890; Wed, 15 Feb 2006 17:47:31 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17394.45666.770815.661706@kahikatea.snap.net.nz> Date: Wed, 15 Feb 2006 04:48:00 -0000 To: Daniel Jacobowitz Cc: gdb@sourceware.org Subject: Re: MI error msgs and localization In-Reply-To: <20060215030507.GA8700@nevyn.them.org> References: <17393.12925.270558.512941@kahikatea.snap.net.nz> <17394.17519.510199.853654@kahikatea.snap.net.nz> <20060214210505.GA817@nevyn.them.org> <17394.26332.314215.498261@kahikatea.snap.net.nz> <20060214233209.GA5046@nevyn.them.org> <17394.34829.877266.50785@kahikatea.snap.net.nz> <20060215030507.GA8700@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00154.txt.bz2 > Please don't. If you need to pass two arguments to error, make a > two-argument version :-) > > Passing arguments by globals is bad news. Well that's what is already done in mi-main.c, although admittedly the other mi files use error. More importantly, how do you propagate two messages back up the stack when gdb_exception only allows one? (top-gdb) ptype e type = struct gdb_exception { enum return_reason reason; enum errors error; const char *message; } -- Nick http://www.inet.net.nz/~nickrob