From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8843 invoked by alias); 8 Mar 2011 19:51:51 -0000 Received: (qmail 8835 invoked by uid 22791); 8 Mar 2011 19:51:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD 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; Tue, 08 Mar 2011 19:51:47 +0000 Received: (qmail 26529 invoked from network); 8 Mar 2011 19:51:45 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Mar 2011 19:51:45 -0000 From: Pedro Alves To: Tom Tromey Subject: Re: RFC: lazily call save_current_space_and_thread Date: Tue, 08 Mar 2011 19:54:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-27-generic; KDE/4.6.1; x86_64; ; ) Cc: gdb-patches@sourceware.org, Jan Kratochvil References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103081951.43055.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: 2011-03/txt/msg00567.txt.bz2 On Tuesday 08 March 2011 19:49:57, Tom Tromey wrote: > Pedro> I think the case at hand is while we're handling internal > Pedro> events, before giving the prompt to the user. Is that so? > > Tom> Yes, that is what is happening. > Tom> I will try to reword the comment to be more clear. > > What do you think of this? > > /* When processing internal events, there might not be a > selected frame. If we naively call get_selected_frame > here, then we can end up reading debuginfo for the > current frame, but we don't generally need the debuginfo > at this point. */ Perfect. Thanks. -- Pedro Alves