Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Frank Haverkamp" <f.haverkamp@web.de>
To: gdb@sources.redhat.com
Subject: trying to make gdbserver running on intel
Date: Wed, 06 Jun 2001 04:58:00 -0000	[thread overview]
Message-ID: <200106061158.f56Bwc816337@mailgate3.cinetic.de> (raw)

Hi,

I want to use gdbserver on the embedded platform I am working with.
But first I wanted to try it out on my intel box. I am running Redhat 7.1
gdb and used the sources of gdb-5.0. I build the gdbserver
on my system and finally I tried to make it run on my local computer.
I wrote a testprogram and started gdbserver as following:

$ gdbserver localhost:2345 ./text

Afterwards I started gdb and typed in the following commands:

(gdb) target cisco localhost:2345

So far so good. The gdbserver said:

Process ./test created; pid = 8584
Remote debugging using localhost:2345

GDB said:

(gdb) target cisco localhost:2345
Remote debugging using localhost:2345

... and the (gdb) prompt did not return as I expected it to do. I can
type in some characters but my programm seems to be stuck at this
place.

So I tried to start gdbserver in combination with strace:

$ strace gdbserver localhost:2345 ./test

and now I can see that the stuff I type in my gdb window is
actually transfered to the gdbserver:

fcntl64(4, F_SETFL, O_RDONLY|O_ASYNC)   = 0
write(2, "Remote debugging using localhost"..., 38Remote debugging using localhost:2345
) = 38
read(4, "Hello ", 8192)                 = 6
read(4, "World!\r", 8192)               = 7
read(4,

Does anybody know what I did wrong or how this should be if it works
correctly?? Any help would be appreciated!

Thanks,

Frank


--
Frank Haverkamp
f.haverkamp@web.de
______________________________________________________________________________
Ferienklick.de - Jede Menge Urlaub auf einen Blick!
Hier geht's zu Ihrem Traumstrand: http://ferienklick.de/?PP=2-0-100-105-1


             reply	other threads:[~2001-06-06  4:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-06  4:58 Frank Haverkamp [this message]
2001-06-06 13:27 ` Daniel Jacobowitz

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=200106061158.f56Bwc816337@mailgate3.cinetic.de \
    --to=f.haverkamp@web.de \
    --cc=gdb@sources.redhat.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