From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2853 invoked by alias); 15 Feb 2006 13:37:36 -0000 Received: (qmail 2845 invoked by uid 22791); 15 Feb 2006 13:37:35 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 15 Feb 2006 13:37:33 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F9MqZ-0005D4-0N; Wed, 15 Feb 2006 08:37:31 -0500 Date: Wed, 15 Feb 2006 13:37:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb@sourceware.org Subject: Re: MI error msgs and localization Message-ID: <20060215133730.GA19972@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb@sourceware.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> <17394.45666.770815.661706@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17394.45666.770815.661706@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.8i 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/msg00156.txt.bz2 On Wed, Feb 15, 2006 at 05:47:30PM +1300, Nick Roberts wrote: > > 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; > } By adding to that struct? -- Daniel Jacobowitz CodeSourcery