From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19484 invoked by alias); 20 Jan 2011 17:29:29 -0000 Received: (qmail 19462 invoked by uid 22791); 20 Jan 2011 17:29:28 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Jan 2011 17:29:23 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0KHTL7P017680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 20 Jan 2011 12:29:21 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p0KHTJkS026393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 20 Jan 2011 12:29:21 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p0KHTJcg004960; Thu, 20 Jan 2011 18:29:19 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p0KHTHms004956; Thu, 20 Jan 2011 18:29:17 +0100 Date: Thu, 20 Jan 2011 17:29:00 -0000 From: Jan Kratochvil To: Leon Pollak Cc: gdb@sourceware.org Subject: Re: Restarting gdbserver Message-ID: <20110120172917.GA1605@host1.dyn.jankratochvil.net> References: <201101201129.50875.leonp@plris.com> <201101201611.38963.leonp@plris.com> <20110120141124.GA19527@host1.dyn.jankratochvil.net> <201101201700.08641.leonp@plris.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201101201700.08641.leonp@plris.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2011-01/txt/msg00087.txt.bz2 On Thu, 20 Jan 2011 16:00:07 +0100, Leon Pollak wrote: > I read the docs about `set debug-file-directory' - it says that this is > applicable in the case of the SEPARATE debug info, but I suppose that in my > case it is inside the ELF module, no? According to your environment description I agree you do not need `set debug-file-directory'. > I have the target's root FS on my PC in /opt/FS directory mounted via NFS. > The development is done in another separate place - /Projects/CSU/... > The compiled&linked executable module is hard-linked to the file in the > /opt/FS/common/csu and I start the gdb saying: > set sysroot /opt/FS/ > set remote exec-file /common/csu > > Is this insufficient? > I can put break points and step through the code. The problem seems to be just > with frame/backtrace only. `set remote exec-file' only instructs remote gdbserver in --multi mode. It does not provide symbols to local GDB in any way. Tested two cases, run on machine A, with remote host host1s which is also mounted at /host1: ./gdb -nx -ex 'set sysroot /host1' -ex 'set debug-file-directory /host1/usr/lib/debug' -ex 'file /host1/home/jkratoch/t/1' -ex 'target remote host1s:1234' -ex 'b main' -ex c ./gdbserver :1234 /home/jkratoch/t/1 or: ./gdb -nx -ex 'file /host1/home/jkratoch/t/1' -ex 'target extended-remote host1s:1234' -ex 'set sysroot /host1' -ex 'set remote exec-file /home/jkratoch/t/1' -ex start ./gdbserver --multi :1234 The `file' command provides the symbols for local GDB. Regards, Jan