From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 920 invoked by alias); 7 Nov 2012 15:09:15 -0000 Received: (qmail 833 invoked by uid 22791); 7 Nov 2012 15:09:14 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO 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; Wed, 07 Nov 2012 15:09:05 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 8BC6C2E08B; Wed, 7 Nov 2012 10:09:04 -0500 (EST) 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 Y17C11cRN1nq; Wed, 7 Nov 2012 10:09:04 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 551AE2E085; Wed, 7 Nov 2012 10:09:04 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id B9A44C562D; Wed, 7 Nov 2012 07:08:56 -0800 (PST) Date: Wed, 07 Nov 2012 15:09:00 -0000 From: Joel Brobecker To: Luis Machado Cc: gdb-patches@sourceware.org Subject: Re: [PATCH,tests] Run to main before doing any tests in structs3.exp Message-ID: <20121107150856.GF5103@adacore.com> References: <50994431.1040405@codesourcery.com> <20121106173029.GC5103@adacore.com> <50995C16.2060507@codesourcery.com> <20121107002611.GD5103@adacore.com> <509A44E3.9030209@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <509A44E3.9030209@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00144.txt.bz2 > 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. -- Joel