From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24391 invoked by alias); 14 Nov 2012 19:22:54 -0000 Received: (qmail 24381 invoked by uid 22791); 14 Nov 2012 19:22:53 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Nov 2012 19:22:46 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TYiXu-0002fG-8Z from Luis_Gustavo@mentor.com ; Wed, 14 Nov 2012 11:22:46 -0800 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 14 Nov 2012 11:22:46 -0800 Received: from [0.0.0.0] ([172.16.63.104]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 14 Nov 2012 11:22:45 -0800 Message-ID: <50A3EF9E.602@codesourcery.com> Date: Wed, 14 Nov 2012 19:22:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20 MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: [PATCH,tests] Run to main before doing any tests in structs3.exp References: <50994431.1040405@codesourcery.com> <20121106173029.GC5103@adacore.com> <50995C16.2060507@codesourcery.com> <20121107002611.GD5103@adacore.com> <509A44E3.9030209@codesourcery.com> <20121107150856.GF5103@adacore.com> In-Reply-To: <20121107150856.GF5103@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2012-11/txt/msg00383.txt.bz2 On 11/07/2012 01:08 PM, Joel Brobecker wrote: >> Though "two" and "twop" have been properly relocated, the value of >> "twop" is still pointing at the location before relocation, thus the >> printed values are wrong. > > Ha! I get it, now; thanks, Luis. > >> Pedro's suggestion of simply loading the binary via gdb_file_cmd >> works for me though. So there is no need to effectively start the >> inferior. > > Like Pedro, I think we should try to be as standard as possible. > Starting the inferior isn't a real issue. > Thanks. I've checked it in now. Luis