Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Luis Machado <lgustavo@codesourcery.com>
To: John Martin <jmartin@larraioz.com>
Cc: gdb@sourceware.org
Subject: Re: Doubts with GDB and GDBSERVER
Date: Mon, 10 Dec 2012 13:38:00 -0000	[thread overview]
Message-ID: <50C5E5CD.1060607@codesourcery.com> (raw)
In-Reply-To: <50C5DC2E.70106@larraioz.com>

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<http://gnu.org/licenses/gpl.html>
> 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:
> <http://www.gnu.org/software/gdb/bugs/>.
> (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


  reply	other threads:[~2012-12-10 13:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <50C5D99A.8040708@larraioz.com>
2012-12-10 12:57 ` John Martin
2012-12-10 13:38   ` Luis Machado [this message]
2012-12-10 13:46     ` John Martin
2012-12-10 13:51       ` Jan Kratochvil
     [not found] <50C5F681.8050505@larraioz.com>
2012-12-10 15:00 ` John Martin
2012-12-13 21:19   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C5E5CD.1060607@codesourcery.com \
    --to=lgustavo@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=jmartin@larraioz.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox