From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30787 invoked by alias); 15 Dec 2007 15:44:56 -0000 Received: (qmail 30777 invoked by uid 22791); 15 Dec 2007 15:44:55 -0000 X-Spam-Check-By: sourceware.org Received: from smtp106.plus.mail.sp1.yahoo.com (HELO smtp106.plus.mail.sp1.yahoo.com) (69.147.95.69) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 15 Dec 2007 15:44:47 +0000 Received: (qmail 87414 invoked from network); 15 Dec 2007 15:44:45 -0000 Received: from unknown (HELO sdelaney2) (onramp123@76.176.127.175 with login) by smtp106.plus.mail.sp1.yahoo.com with SMTP; 15 Dec 2007 15:44:45 -0000 X-YMail-OSG: 5vNx4_gVM1l4mRpi6Rq5lbujV8I1_HM5DIry0TGWBAH_8X.31znL1UESHlALaFGd_eh_4_ybMp5yXSU87s4ZTRnZxsN86cSLAzlPUGTs6PAwHzWmrViN3cfPTgW3tHS2Y0QrZnz.fOxOrCZ6j4fpiuQ- Received: from sdelaney2 ([127.0.0.1]) by [127.0.0.1] with ESMTP (SpamPal v1.594) sender ; 15 Dec 2007 07:41:47 -0700 Reply-To: From: "Steve DeLaney" To: Subject: gdbserver 6.7.1 for mingw32ce connect to host gdb problem Date: Sat, 15 Dec 2007 15:44:00 -0000 Message-ID: <006001c83f31$00d510d0$6603a8c0@sdelaney2> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: 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/msg00106.txt.bz2 using the newly supplied build script, the bfd patch is applied and the build is clean. but now I am struggling to get gdbserver to accept a connection from development host using target remote xxxx 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 '.' Test over RNDIS and WLAN with the same results. gdbserver times out after about 8 seconds on the host arm-wince-mingw32ce-gdb test.exe target remote 169.254.2.1:9999 returns Connection refused tcp test is OK, able to ping the IPAQ 2795 target. I'm kind of stumped. I hacked a few diagnostics into gdbserver/server.c to try and trace what was going on. I wondered about __MINGW32CE__ asserted in the make CFLAGS any ideas what might be going on, or how best to trace this? thanks /steverino2 -----Original Message----- From: Steve DeLaney [mailto:onramp123@yahoo.com] Sent: Wednesday, December 12, 2007 1:39 PM To: 'Pedro Alves'; 'gdb@sourceware.org' Subject: build script for gdb 6.7.1 for mingw32ce Thanks to all the help from Pedro on this. I'm including a build script that patches gdb 6.7.1 and builds gdb and gdbserver. not sure the best way to post this so I'll just include it inline for now. #!/bin/bash # build-gdb-6.7.1-mingw32ce # built with mingw32ce distro 0.51 # src=gdb-6.7.1 patchfile=mingw32ce.patch echo "UNTAR $src DISTRO" tar xvzf $src.tar.gz echo "PATCHING $src DISTRO for mingw32ce" cd $src/bfd # using bfd patch submitted by Pedro 2007-12-10 patch < ../../mingw32ce.patch cd ../.. echo "BUILDING GDB" mkdir build-gdb cd build-gdb ../$src/configure --target=arm-wince-mingw32ce --prefix=/opt/mingw32ce make make install cd .. echo "GDB BUILD COMPLETE" echo "BUILDING GDBSERVER" mkdir build-gdbserver cd build-gdbserver ../$src/gdb/gdbserver/configure --host=arm-wince-mingw32ce make arm-wince-mingw32ce-strip gdbserver.exe -o gdbserver-stripped.exe echo "GDBSERVER BUILD COMPLETE" echo "copy gdbserver-stripped.exe to the device and rename it gdbserver.exe" cd .. -----Original Message----- From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of Pedro Alves Sent: Monday, December 10, 2007 2:25 PM To: gdb@sourceware.org; onramp123@yahoo.com Subject: RE: help building gdb 6.7.1 for windows CE ARM Steve DeLaney wrote: > I am attempting a build of gdb 6.7.1 for windows CE ARM target using > mingw32ce the objective is to have gdbserver on target providing a "target > remote x" interface to the host development gdb. in other words a standard > session configuration. > > can anyone help with the --target and --host configure options ? > Build gdb with --target=arm-wince-mingw32ce Build gdbserver with --host=arm-wince-mingw32ce > I think there is a bfd patch but not sure if it is located in the patches > archive ? > I had never submitted it upstream ... ... until now: http://sourceware.org/ml/binutils/2007-12/msg00051.html -- Pedro Alves