From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17069 invoked by alias); 24 Feb 2003 08:29:52 -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 16811 invoked from network); 24 Feb 2003 08:29:49 -0000 Received: from unknown (HELO TYO202.gate.nec.co.jp) (202.32.8.202) by 172.16.49.205 with SMTP; 24 Feb 2003 08:29:49 -0000 Received: from mailgate3.nec.co.jp ([10.7.69.194]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id h1O8TeU20179; Mon, 24 Feb 2003 17:29:40 +0900 (JST) Received: from mailsv4.nec.co.jp (mailgate51.nec.co.jp [10.7.69.190]) by mailgate3.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h1O8TdL08805; Mon, 24 Feb 2003 17:29:39 +0900 (JST) Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id h1O8SYH19740; Mon, 24 Feb 2003 17:29:25 +0900 (JST) Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id h1O8SYB05993; Mon, 24 Feb 2003 17:28:34 +0900 (JST) Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id BB52937BE; Mon, 24 Feb 2003 17:28:33 +0900 (JST) To: uclinux-dev@uclinux.org Cc: gdb@sources.redhat.com Subject: gdbserver relocation? Reply-To: Miles Bader System-Type: i686-pc-linux-gnu Blat: Foop From: Miles Bader Date: Mon, 24 Feb 2003 08:29:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-02/txt/msg00509.txt.bz2 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). Thanks, -Miles -- "Most attacks seem to take place at night, during a rainstorm, uphill, where four map sheets join." -- Anon. British Officer in WW I