From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25425 invoked by alias); 17 May 2010 07:38:48 -0000 Received: (qmail 25414 invoked by uid 22791); 17 May 2010 07:38:44 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f194.google.com (HELO mail-qy0-f194.google.com) (209.85.221.194) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 May 2010 07:38:36 +0000 Received: by qyk32 with SMTP id 32so12423761qyk.0 for ; Mon, 17 May 2010 00:38:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.43.141 with SMTP id w13mr2610954qae.12.1274081914238; Mon, 17 May 2010 00:38:34 -0700 (PDT) Received: by 10.229.74.134 with HTTP; Mon, 17 May 2010 00:38:34 -0700 (PDT) Date: Mon, 17 May 2010 07:38:00 -0000 Message-ID: Subject: gdbserver "load" command From: Venkata Subbarao To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00048.txt.bz2 Hi, I am trying to debug a i386 program using gdb. All I wanted to do is to run gdbserver without the binary file and load the program using "load" command. So following were the steps followed by me. I request you to help me in this regard. I have downloaded and installed GNU debugger. I ran the gdbserver as follows. gdbserver --multi :9999 Then I ran the gdb client and tried to load the program using the following command gdb> target remote :9999 (This resulted in error The target is not running (try extended-remote?). So I had to use the following command) gdb> target extended-remote :9999 gdb> load This printed following error. Loading section .interp, size 0x13 lma 0x8048114 Load failed I have following questions: 1) What is the difference between gdbserver and gdb stub ? 2) How can i load a program dynamically using "load" command in gdb ? I kindly request you to help me in this regard. Thanks in advance, -- Subbarao.