From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15813 invoked by alias); 10 Jun 2006 21:04:37 -0000 Received: (qmail 15804 invoked by uid 22791); 10 Jun 2006 21:04:37 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 10 Jun 2006 21:04:34 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5AL4VxT019679; Sat, 10 Jun 2006 17:04:31 -0400 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5AL4VfJ002078; Sat, 10 Jun 2006 17:04:31 -0400 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k5AL4TR27419; Sat, 10 Jun 2006 17:04:30 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.13.1/8.13.1) with ESMTP id k5AL4Swn028896; Sat, 10 Jun 2006 17:04:28 -0400 Received: (from dj@localhost) by greed.delorie.com (8.13.1/8.13.1/Submit) id k5AL4Mcc028893; Sat, 10 Jun 2006 17:04:22 -0400 Date: Sat, 10 Jun 2006 23:42:00 -0000 Message-Id: <200606102104.k5AL4Mcc028893@greed.delorie.com> From: DJ Delorie To: tmohr@s.netic.de CC: gdb@sourceware.org In-reply-to: <200606101707.58539.tmohr@s.netic.de> (message from Torsten Mohr on Sat, 10 Jun 2006 17:07:58 +0200) Subject: Re: use LMA instead of VMA? References: <200606101707.58539.tmohr@s.netic.de> 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-06/txt/msg00070.txt.bz2 > i'd like to test my startup code in crt0.S but have some problems > with that as gdb uses the sections VMA instead of the LMA. Why would this confuse gdb? If the crt0 code is *running* it should already be at its VMA. In the cases where LMA and VMA differ in my projects, it's because I need to initialize RAM from ROM, so I don't need gdb to know about the data until after I've moved it to its VMA. Maybe you need to tell us more about how your code is set up?