From: Kevin K. <kev...@ch...> - 2005-03-30 22:24:58
|
> MinGW should work, though I haven't tested it, > and probably won't for a while because building things with MinGW takes ages > compared to doing the same on Linux, especially when huge sources like GDB > are involved. Actually, no, it won't work right now: * I need to replace the stock GDB I imported with the MinGW-patched one. When I imported GDB, I thought it supported MinGW out of the box, at least as a host, as GCC is doing for ages now, but unfortunately it doesn't, apparently because of (guess what) the FSF copyright assignment bureaucracy (which plagues the entire GNU toolchain, many interesting patches which are perfectly legal to use under the GPL get lost because of that). They have a version based on the 6.3 release, and it seems they haven't changed all that much (though unfortunately they don't provide a diff, only a full source, so I have to diff it myself), so it should be doable with a relatively quick merge-and-commit. But still, it has to be done. * I need to make sure I link with the proper Win32 DLLs. I guess I'll have to duplicate some configure checks from GDB, such as this one: # libreadline needs libuser32.a in a cygwin environment WIN32LIBS= if test x$gdb_cv_os_cygwin = xyes || test x$gdb_cv_os_mingw = xyes; then WIN32LIBS="-luser32" case "${target}" in *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" ;; *mingw*) WIN32LIBS="$WIN32LIBS -lwsock32 -lpsapi" ;; esac fi in the TiEmu configuration or makefile. * I also need to conditionalize or eliminate the curses library linking, because whereas ncurses can be linked as just -lcurses, pdcurses (which is the curses implementation normally used with MinGW) needs a -lpdcurses. * Until the GUI window for the GDB CLI is implemented, I need to compile TiEmu in console mode. Of course, we'll also need to test it. I'll see what I can do. Unfortunately, I'm somehow short on disk space on my Windows partitions, but I should be able to find a solution to that problem. Kevin Kofler |