From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27570 invoked by alias); 4 Mar 2010 13:45:59 -0000 Received: (qmail 27558 invoked by uid 22791); 4 Mar 2010 13:45:59 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Mar 2010 13:45:54 +0000 Received: (qmail 5251 invoked from network); 4 Mar 2010 13:45:52 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Mar 2010 13:45:52 -0000 Date: Thu, 04 Mar 2010 13:45:00 -0000 From: Daniel Jacobowitz To: Hui Zhu Cc: Joel Brobecker , gdb-patches ml Subject: Re: [RFA] Fix "Segmentation fault" when "gdb -v" Message-ID: <20100304134546.GA23708@caradoc.them.org> Mail-Followup-To: Hui Zhu , Joel Brobecker , gdb-patches ml References: <20100304072620.GJ2832@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00172.txt.bz2 On Thu, Mar 04, 2010 at 04:06:00PM +0800, Hui Zhu wrote: > The way is make it output after interp_set. Take a look at the comment you moved. > - /* Do these (and anything which might call wrap_here or *_filtered) > - after initialize_all_files() but before the interpreter has been > - installed. Otherwize the help/version messages will be eaten by > - the interpreter's output handler. */ That says to do it before interp_set. -- Daniel Jacobowitz CodeSourcery