From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8617 invoked by alias); 4 Mar 2010 14:59:57 -0000 Received: (qmail 8607 invoked by uid 22791); 4 Mar 2010 14:59:56 -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 14:59:53 +0000 Received: (qmail 18180 invoked from network); 4 Mar 2010 14:59:51 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Mar 2010 14:59:51 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFA] Fix "Segmentation fault" when "gdb -v" Date: Thu, 04 Mar 2010 14:59:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) Cc: Joel Brobecker , Hui Zhu References: <20100304072620.GJ2832@adacore.com> <201003041402.07512.pedro@codesourcery.com> In-Reply-To: <201003041402.07512.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003041459.49275.pedro@codesourcery.com> X-IsSubscribed: yes 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/msg00178.txt.bz2 On Thursday 04 March 2010 14:02:07, Pedro Alves wrote: > I agree, and turns out this is what's already happening, albeit in > a "works almost by accident" way. I think this patch below wouldn't > be that bad afterall. It does fix the problem. I went ahead and applied this. Thanks. > 2010-03-04 Pedro Alves > > * utils.c (fputs_maybe_filtered): Check if there's already a top > level interpreter before dereferencing it. If there isn't one, > don't paginate either. -- Pedro Alves