From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31158 invoked by alias); 10 Dec 2012 13:38:27 -0000 Received: (qmail 31022 invoked by uid 22791); 10 Dec 2012 13:38:25 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 13:38:21 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Ti3Yp-0004al-Ob from Luis_Gustavo@mentor.com ; Mon, 10 Dec 2012 05:38:19 -0800 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 10 Dec 2012 05:38:19 -0800 Received: from [0.0.0.0] ([172.16.63.104]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 10 Dec 2012 05:38:19 -0800 Message-ID: <50C5E5CD.1060607@codesourcery.com> Date: Mon, 10 Dec 2012 13:38:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20 MIME-Version: 1.0 To: John Martin CC: gdb@sourceware.org Subject: Re: Doubts with GDB and GDBSERVER References: <50C5D99A.8040708@larraioz.com> <50C5DC2E.70106@larraioz.com> In-Reply-To: <50C5DC2E.70106@larraioz.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2012-12/txt/msg00039.txt.bz2 On 12/10/2012 10:57 AM, John Martin wrote: > > Hello, > > I have tried to use gdb and gdbserver to debug App but I have a doubts: > > In server side: > gdbserver :12345 ./App > > In client side: > > GNU gdb (GDB) 7.5 > Copyright (C) 2012 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or > later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i586-geode-linux-gnu". > For bug reporting instructions, please see: > . > (gdb) target remote 192.168.1.150:12345 > Remote debugging using 192.168.1.150:12345 > warning: Could not load vsyscall page because no executable was specified > try using the "file" command first. > 0xb7fe77e0 in ?? () > (gdb) file App > A program is being debugged already. > Are you sure you want to change the file? (y or n) y > App: No existe el fichero o el directorio. > (gdb) > > > Is it possible to load symbol table App from target remote? > > Best regards. > > You need a copy of the binary in the host as well... Try loading the symbol file *before* connecting to the remote target too. Does that work? Luis