From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24654 invoked by alias); 25 Apr 2010 13:40:29 -0000 Received: (qmail 24645 invoked by uid 22791); 25 Apr 2010 13:40:28 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Apr 2010 13:40:22 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L1F00000PVYVQ00@a-mtaout20.012.net.il> for gdb@sourceware.org; Sun, 25 Apr 2010 16:40:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.124.71.78]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L1F00F36PZ00GN0@a-mtaout20.012.net.il>; Sun, 25 Apr 2010 16:40:12 +0300 (IDT) Date: Sun, 25 Apr 2010 13:40:00 -0000 From: Eli Zaretskii Subject: Re: "set foo" In-reply-to: <20100424212118.GW13204@adacore.com> To: Joel Brobecker Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83y6gbzm4e.fsf@gnu.org> References: <8339yk1skw.fsf@gnu.org> <20100424212118.GW13204@adacore.com> X-IsSubscribed: yes 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/msg00129.txt.bz2 > Date: Sat, 24 Apr 2010 17:21:18 -0400 > From: Joel Brobecker > Cc: gdb@sourceware.org > > I think that "main" is treated as an expression, and this expression > simply returns the address of function main. For instance, try the > following: > > (gdb) print main > > Since it's a "set" command, we then discard the result of the evaluation. Thanks. So using "set foo" to make sure some symbol used by `foo' is loaded by GDB is a valid technique, is that right?