From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7739 invoked by alias); 22 Feb 2006 18:38:18 -0000 Received: (qmail 7730 invoked by uid 22791); 22 Feb 2006 18:38:18 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 22 Feb 2006 18:38:17 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FBysR-0007cY-C6; Wed, 22 Feb 2006 13:38:15 -0500 Date: Wed, 22 Feb 2006 19:23:00 -0000 From: Daniel Jacobowitz To: =?iso-8859-1?Q?Fabr=EDcio?= de Novaes Cc: gdb@sourceware.org Subject: Re: Does GDB use VMA addresses when uploading an image to debug in a remote target? Message-ID: <20060222183815.GA29181@nevyn.them.org> Mail-Followup-To: =?iso-8859-1?Q?Fabr=EDcio?= de Novaes , gdb@sourceware.org References: <1140633020.8776@satelite.dea.inpe.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1140633020.8776@satelite.dea.inpe.br> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00299.txt.bz2 On Wed, Feb 22, 2006 at 03:30:20PM -0300, Fabrício de Novaes wrote: > I can't make VMA and LMA the same, or the program will not run in > RAM. So the question is: there's a way to tell GDB to use LMA instead > of VMA when loading a program? No, today there is not. You might be able to accomplish this by using objcopy to create a copy of the program with different VMAs, and loading that. -- Daniel Jacobowitz CodeSourcery