From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6664 invoked by alias); 24 Feb 2003 14:28:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6652 invoked from network); 24 Feb 2003 14:28:42 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 24 Feb 2003 14:28:42 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18nLU6-00058M-00; Mon, 24 Feb 2003 10:29:42 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18nJaq-0006Uu-00; Mon, 24 Feb 2003 09:28:32 -0500 Date: Mon, 24 Feb 2003 14:28:00 -0000 From: Daniel Jacobowitz To: Miles Bader Cc: uclinux-dev@uclinux.org, gdb@sources.redhat.com Subject: Re: gdbserver relocation? Message-ID: <20030224142831.GB24793@nevyn.them.org> Mail-Followup-To: Miles Bader , uclinux-dev@uclinux.org, gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00512.txt.bz2 On Mon, Feb 24, 2003 at 05:28:33PM +0900, Miles Bader wrote: > Hi, > > I've been trying to get gdbserver working on the v850, and I'm wondering > the m68k port deals with the address offset between the symbol file and > the actual executable, since unlike in normal linux, the executable gets > relocated at runtime in uClinux in a user visible way. > > Does gdb itself have a `set base address' command? I saw the `section' > command, but it didn't seem to have any useful effect. > > It seems to me that it has to be gdb that does the offseting, since > gdbserver doesn't know which values would need adjustment (e.g., > returned register values). You're right. Gdbserver doesn't do anything with symbol lookup at all; so this has to happen in the client. You're wrong about referencing the m68k port though. GDB's m68k/linux port (I assume that's what you meant) is for Linux, not uClinux. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer