From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19117 invoked by alias); 10 Dec 2012 13:46:45 -0000 Received: (qmail 19080 invoked by uid 22791); 10 Dec 2012 13:46:41 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from vl05.dinaserver.com (HELO vl05.dinaserver.com) (82.98.145.70) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 13:46:29 +0000 Received: from linux-8yvd.site (110.Red-79-156-132.staticIP.rima-tde.net [79.156.132.110]) by vl05.dinaserver.com (Postfix) with ESMTPA id 5371A1E9F1; Mon, 10 Dec 2012 14:46:16 +0100 (CET) Message-ID: <50C5E7BD.8000703@larraioz.com> Date: Mon, 10 Dec 2012 13:46:00 -0000 From: John Martin User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120328 Thunderbird/11.0.1 MIME-Version: 1.0 To: lgustavo@codesourcery.com CC: gdb@sourceware.org Subject: Re: Doubts with GDB and GDBSERVER References: <50C5D99A.8040708@larraioz.com> <50C5DC2E.70106@larraioz.com> <50C5E5CD.1060607@codesourcery.com> In-Reply-To: <50C5E5CD.1060607@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DinaScanner-Information: DinaScanner. Filtro anti-Spam y anti-Virus X-MailScanner-ID: 5371A1E9F1.D7BA6 X-DinaScanner: Libre de Virus X-DinaScanner-SpamCheck: no es spam, SpamAssassin (not cached, puntaje=-4.399, requerido 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-DinaScanner-From: jmartin@larraioz.com 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/msg00040.txt.bz2 Hello Luis, Yes, it works. But I am interesting in load symbols from remote file, then it is not a solution for me. Thank you very much. Best regards. El 10/12/12 14:38, Luis Machado escribió: > 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 >