From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27490 invoked by alias); 25 Apr 2010 14:43:56 -0000 Received: (qmail 27472 invoked by uid 22791); 25 Apr 2010 14:43:55 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Apr 2010 14:43:49 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id CA60D2BAC7B; Sun, 25 Apr 2010 10:43:47 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MXluoXnt+krf; Sun, 25 Apr 2010 10:43:47 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id B3F482BAC72; Sun, 25 Apr 2010 10:43:47 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4F602F5896; Sun, 25 Apr 2010 10:43:47 -0400 (EDT) Date: Sun, 25 Apr 2010 14:43:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: gdb@sourceware.org Subject: Re: "set foo" Message-ID: <20100425144347.GA2744@adacore.com> References: <8339yk1skw.fsf@gnu.org> <20100424212118.GW13204@adacore.com> <83y6gbzm4e.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83y6gbzm4e.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00131.txt.bz2 > So using "set foo" to make sure some symbol used by `foo' is loaded by > GDB is a valid technique, is that right? I think the answer is yes - I am a little confused by "some symbol used by `foo'", but I think I get what you are trying to ask. Basically, what the above does, as a side effect, is make sure that the full symbols for the unit containing `foo' get loaded. I am not sure why the person who added it felt that they needed that, but I have used that technique as a workaround several times in the past when there was a bug with psymtab searching... -- Joel