Kevin O'Connor wrote: > On Tue, Oct 31, 2006 at 07:03:45PM +0000, Pedro Alves wrote: > >> I'm puzzled. >> I just built cegcc and mingw32ce to test for the recent patches, >> and both versions of gdb built perfectly. >> I used the scripts under src/ >> > > It still fails for me. It looks like the gdb compile is trying to mix > the windows headers with the system headers. Since I compile on a 64 > bit host, this likely causes issues. > > cegcc/src$ ./build-mingw32ce.sh > ... > gcc -c -I/home/kevin/src/vx6700/haret/cegcc/src/w32api/include -D__arm__ > -DARM -U_X86_ -U_M_IX86 -U__i386__ -U__i486__ -U__i586__ -U__i686__ -DUNICODE > -DUNDER_CE -D_WIN32_WCE -DWINCE_STUB='"arm-wince-mingw32ce-stub.exe"' -I. > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/config > -DLOCALEDIR="\"/home/kevin/src/vx6700/haret/toolchain-cegcc/share/locale\"" > -DHAVE_CONFIG_H > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/../include/opcode > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/../readline/.. -I../bfd > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/../bfd > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/../include -I../intl > -I/home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/../intl -DMI_OUT=1 -DTUI=1 > -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -Wformat-nonliteral -Wunused-label -Wunused-function > /home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/win32-nat.c > /home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/win32-nat.c:2507:2: warning: > #warning "This is probably failing..." > In file included from > /home/kevin/src/vx6700/haret/cegcc/src/w32api/include/windef.h:266, > from > /home/kevin/src/vx6700/haret/cegcc/src/w32api/include/windows.h:49, > from > /home/kevin/src/vx6700/haret/cegcc/src/gdb/gdb/win32-nat.c:29: > /home/kevin/src/vx6700/haret/cegcc/src/w32api/include/winnt.h:3902: error: > conflicting types for 'size_t' > /usr/lib/gcc/x86_64-redhat-linux/4.1.1/include/stddef.h:214: error: previous > declaration of 'size_t' was here > > Yep, that was the ugly, ugly hack I was talking about. I'm afraid that it will never work in 64-bit mode.
The perfect solution would be to port gdbserver. Gdbserver is a gdb stub that runs on a remote machine, and talks with the main gdb host using the gdb remote protocol, a protocol designed to overcome these host/arch differences, in types and endianness (not a problem here), and to be efficient. I've started porting it to mingw32ce, and got it to compile, but I'm afraid it will take a little longer to get it working. If someone's interested in working on this, I can post the patch I have here. It is against current gdb in cvs. Cheers, Pedro Alves ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel