From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22524 invoked by alias); 9 Jan 2004 18:55:16 -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 22484 invoked from network); 9 Jan 2004 18:55:15 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 9 Jan 2004 18:55:15 -0000 Received: from redhat.com (toocool.toronto.redhat.com [172.16.14.72]) by touchme.toronto.redhat.com (Postfix) with ESMTP id B192A800377; Fri, 9 Jan 2004 13:55:14 -0500 (EST) Message-ID: <3FFEF912.9060209@redhat.com> Date: Fri, 09 Jan 2004 18:55:00 -0000 From: "J. Johnston" Organization: Red Hat Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 MIME-Version: 1.0 To: Jeff Johnston Cc: gdb-patches@sources.redhat.com, Elena Zannoni Subject: Re: [RFA]: error_silent for use in pending breakpoint support References: <3FE21F2B.3030104@redhat.com> In-Reply-To: <3FE21F2B.3030104@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00246.txt.bz2 Ping. Jeff Johnston wrote: > To properly support pending breakpoints, gdb needs to be able to > suppress the "not found" messages at will, but it also needs to > sometimes issue these messages and determine the cause of the error was > a "not found" event. > > To handle the problem, I propose two new useful functions in utils.c. > The first is error_silent() which works just like error(), only it does > not issue the error message. Like error(), it stores the error message > in gdb_lasterr. This leads to the other new function: > error_last_output() which is used to output the last error message. > > This allows the pending breakpoint support to issue the error message > when the user is doing the initial break command and to suppress it when > shared libraries are being loaded or a pending breakpoint is reenabled. > > Ok to commit? > > 2003-12-18 Jeff Johnston > > * linespec.c (decode_variable, symtab_from_filename): Call > error_silent with error message instead of throwing an exception > directly. > * defs.h (error_silent, error_last_output): Add prototypes. > * utils.c (error_silent, error_last_output): New functions. > >