From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14241 invoked by alias); 8 Oct 2002 18:15:56 -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 14231 invoked from network); 8 Oct 2002 18:15:55 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 8 Oct 2002 18:15:55 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17yzpO-0002ga-00; Tue, 08 Oct 2002 14:15:39 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17yyu7-0007ij-00; Tue, 08 Oct 2002 14:16:23 -0400 Date: Tue, 08 Oct 2002 11:15:00 -0000 From: Daniel Jacobowitz To: Mike Roman Cc: gdb@sources.redhat.com Subject: Re: gdbserver and the gdb "load" command for remote target Message-ID: <20021008181623.GB29501@nevyn.them.org> Mail-Followup-To: Mike Roman , gdb@sources.redhat.com References: <20021008175759.92112.qmail@web13113.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021008175759.92112.qmail@web13113.mail.yahoo.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-10/txt/msg00076.txt.bz2 On Tue, Oct 08, 2002 at 10:57:59AM -0700, Mike Roman wrote: > I have one problem. I want to be able to dynamically > be able to load new test program to the target using > gdb. Assuming I don't have the executable for the test > program already stored in the target (for example, I > want to test a new testprogram#2), can I use gdb to > transfer it to the target and debug it? And after > loading it, what is the command to use to instruct the > gdbserver to run this program? No, you can't. gdbserver does not support this. It's not practical to, in the presence of things like dynamic linking. > When invoking the server program, it requires the name > of the program to debug, and it seems that you can not > at later time try to load (or change to) a different > program than the originally given to gdbserver? If > this is true, then the gdb "load" command is not very > useful. Right. Using load is not useful for server targets. Wolfgang posted patches to support a daemon mode for gdbserver that would allow things like this, but he never pursued copyright assignment for them. So they went nowhere. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer