This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Using gdb with Borland's free compiler?
Christopher Faylor wrote:
You can't really do that unless you are the author of the patches, though.
Sure. I was hoping the author was part of the MinGW team and so the
history could be proven. I have asked on the MinGW user list but so far
nothing has appeared. I assume this is ok. Is it ?
It looks like this is about as far as I can take the MinGW work.
This is what I have found.
The major part of the work is readline. The display and input
interfacing to Win32, some code to read directories and various ifdefs
for interfaces not supported by MinGW.
The BFD change is minor. A few lines in opncls.c to detect if an fd has
been opened as read only or read/write.
The changes needed for GDB are:
Headers in config to add mingw32 as a target plus configure.host,
and configure.tgt change.
Changes to configure.in.
Change 'struct environ' to 'struct gdb_environ' as mingw has
'environ' in a system header file as a '#define'.
Change event-loop.c to support Win32 handles for mingw32.
Added missing POSIX modes to gdb_stat.h plus minor changes in
remote-fileio.c due to a different 'struct stat'. (*)
Added support for ser-tcp over winsock2 for target tcp. (*)
Support for mingw in win32-nat.c.
Small number of minor changes, eg missing SIGQUIT, no fork
check in top.c.
(*) I have added these.
--
Chris Johns, cjohns at cybertec.com.au