Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro_alves@portugalmail.pt>
To: onramp123@yahoo.com
Cc: gdb@sourceware.org
Subject: Re: gdbserver 6.7.1 for mingw32ce connect to host gdb problem
Date: Sun, 16 Dec 2007 16:41:00 -0000	[thread overview]
Message-ID: <47655537.7040203@portugalmail.pt> (raw)
In-Reply-To: <006001c83f31$00d510d0$6603a8c0@sdelaney2>

Steve DeLaney wrote:

> first I noticed that gdbserver needs a command line like this
> 
> gdbserver.exe 169.254.2.2:9999 \\path\\test.exe
> 
> without path to .exe it just exits with a usage message
> this is due to the fact that wince doesn't define a default (current)
> directory like '.'
> 

1) gdbserver currently ignores host part in HOST:PORT, so you can
    just use '$GDBSERVER :$PORT $PATH'.

2) There is *no* notion of current directory on Windows CE.  On
    WinCE, every path *must* be absolute.  (There is an
    hardcoded $PATH, that looks of executables in \Windows and \ )

    Gdbserver allows you to use forward slashes too:
    gdbserver.exe :9999 /path/test.exe

    And skip the .exe extension:
    gdbserver.exe :9999 /path/test


> Test over RNDIS and WLAN with the same results.  gdbserver times out after
> about 8 seconds
> 

I'm not sure what you're seeing.  You should see something like
this:

\> gdbserver :9999 main
Process main created; pid=-1226757750
Listening on port 9999

 > I wondered about __MINGW32CE__ asserted in
> the make CFLAGS 
> 

Can you be more specific?   (__MINGW32CE__ is automatically
defined by the mingw32ce compiler.)

> any ideas what might be going on, or how best to trace this?

Looks like something is not 100% right in your tcp/ip
connection.
Can you ping the host from the device ?
Is there any firewalling involved ?
Can you start gdbserver listening on 9999, and telnet it (to
remove gdb from the picture) with 'telnet $ip 9999' ?

-- 
Pedro Alves


  reply	other threads:[~2007-12-16 16:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-15 15:44 Steve DeLaney
2007-12-16 16:41 ` Pedro Alves [this message]
2007-12-16 23:14   ` Steve DeLaney
2007-12-16 23:48     ` Pedro Alves

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=47655537.7040203@portugalmail.pt \
    --to=pedro_alves@portugalmail.pt \
    --cc=gdb@sourceware.org \
    --cc=onramp123@yahoo.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