From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2152 invoked by alias); 6 Aug 2004 06:22:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2128 invoked from network); 6 Aug 2004 06:22:50 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 6 Aug 2004 06:22:50 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i766MnOi012435 for ; Fri, 6 Aug 2004 08:22:49 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Fri, 06 Aug 2004 08:21:27 +0200 Message-Id: <5.2.0.9.1.20040806081802.01cf9290@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Fri, 06 Aug 2004 06:22:00 -0000 To: gdb@sources.redhat.com From: Fabian Cenedese Subject: ser-win32.c (was Re: Compiling error) In-Reply-To: <5.2.0.9.1.20040805114320.01cdf4d8@NT_SERVER> References: <5.2.0.9.1.20040805082831.01cd9590@NT_SERVER> <6654-Wed04Aug2004193537+0300-eliz@gnu.org> <5.2.0.9.1.20040804083024.01bbb7a0@NT_SERVER> <5.2.0.9.1.20040804083024.01bbb7a0@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-08/txt/msg00093.txt.bz2 >>So if I need a cross-target gdb (running on win32, debugging ppc) is >>the MinGW variant the only one that works? I thought that there are >>also cygwin versions of gdb... but maybe only win32-win32. >>I found the sgtty.h, it's in the glibc, so it may work ok if I install that >>as well. But I first try the MinGW one. > >So I tried (and fiddled a lot!) again with MSYS and MinGW and got >a gdb.exe. But it has the same problems as the one I built with DJGPP. > >This is the official http://prdownloads.sf.net/mingw/gdb-5.2.1-1-src.tar.bz2, >configured with --target=powerpc-elf32. > >GNU gdb 5.2.1 >Copyright 2002 Free Software Foundation, Inc. >GDB is free software, covered by the GNU General Public License, and you are >welcome to change it and/or distribute copies of it under certain conditions. >Type "show copying" to see the conditions. >There is absolutely no warranty for GDB. Type "show warranty" for details. >This GDB was configured as "--host=i686-pc-mingw32 --target=powerpc-elf32". >Setting up the environment for debugging gdb. >.gdbinit:5: Error in sourced command file: >No symbol table is loaded. Use the "file" command. > >(gdb) symbol-file n:/temp/ps2ism/ps2ism.x >Reading symbols from n:/temp/ps2ism/ps2ism.x...unknown symbol type 0x1e...done. > >(gdb) target remote 127.0.0.1:10372 >127.0.0.1:10372: Bad file descriptor. > >So it doesn't seem to be able to read my binary (which the prebuilt gdb >has no problems with) and network seems also disfunctional. How can >I go on? (Changing --target to powerpc-eabi didn't change anything btw) After looking through the sources I found that serial/TCP connection won't work when built with MinGW. Are there better chances if I build it with cygwin? Or what would it take to create a "ser-win32.c"? I'm only interested in network connection right now, and the socket stuff is quite similar between unix and win32. Or has anybody already created one? Thanks bye Fabi