From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 579 invoked by alias); 16 Dec 2007 16:41:58 -0000 Received: (qmail 562 invoked by uid 22791); 16 Dec 2007 16:41:57 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 16 Dec 2007 16:41:51 +0000 Received: by nf-out-0910.google.com with SMTP id b11so1186179nfh.48 for ; Sun, 16 Dec 2007 08:41:48 -0800 (PST) Received: by 10.78.21.7 with SMTP id 7mr6969071huu.5.1197823308414; Sun, 16 Dec 2007 08:41:48 -0800 (PST) Received: from ?78.130.86.167? ( [78.130.86.167]) by mx.google.com with ESMTPS id h1sm15093638nfh.2007.12.16.08.41.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Dec 2007 08:41:48 -0800 (PST) Message-ID: <47655537.7040203@portugalmail.pt> Date: Sun, 16 Dec 2007 16:41:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: onramp123@yahoo.com CC: gdb@sourceware.org Subject: Re: gdbserver 6.7.1 for mingw32ce connect to host gdb problem References: <006001c83f31$00d510d0$6603a8c0@sdelaney2> In-Reply-To: <006001c83f31$00d510d0$6603a8c0@sdelaney2> 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: 2007-12/txt/msg00108.txt.bz2 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