From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23816 invoked by alias); 4 Aug 2003 15:23:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23809 invoked from network); 4 Aug 2003 15:23:09 -0000 Received: from unknown (HELO frigg.inter.net.il) (192.114.186.16) by sources.redhat.com with SMTP; 4 Aug 2003 15:23:09 -0000 Received: from zaretski (pns03-199-55.inter.net.il [80.230.199.55]) by frigg.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id CQL15963; Mon, 4 Aug 2003 18:22:57 +0300 (IDT) Date: Mon, 04 Aug 2003 15:23:00 -0000 From: "Eli Zaretskii" To: ac131313@redhat.com Message-Id: <7458-Mon04Aug2003181932+0300-eliz@elta.co.il> CC: gdb-patches@sources.redhat.com In-reply-to: <3F2E5CD7.6010403@redhat.com> (message from Andrew Cagney on Mon, 04 Aug 2003 09:17:11 -0400) Subject: Re: [patch/rfc, rfa:doco, 6.0] "set backtrace past-main|limit" Reply-to: Eli Zaretskii References: <3F2C4642.4010409@redhat.com> <3F2E5CD7.6010403@redhat.com> X-SW-Source: 2003-08/txt/msg00033.txt.bz2 > Date: Mon, 04 Aug 2003 09:17:11 -0400 > From: Andrew Cagney > > > > Why should this be anything as scary as `error'? Isn't a simple > > notice (not even a `warning') enough? > > The choices I could think of were: > > - warn and return NULL > but that would become tedious as it would keep occuring - get_prev_frame > is called many times. > > - error out > perhaps add additional information on how to change the limit > > - warn and continue the backtrace > I don't think this helps > > The difference between a warning and error are largely internal - the > latter aborts the command and I think that's better here. Doesn't `error' say something like "Error: ..."? If so, I think it's wrong to scare the user like that. Perhaps we should have a way to silently abort the command, if we don't have that already. Then we could print a message and quitely stop the command.