[patch] Build arm-elf-gdb on mingw host
Dave Murphy
wintermute2k4@ntlworld.com
Sun Sep 25 23:23:00 GMT 2005
When building the bfd/doc directory under mingw/msys chew.c converts
line endings to crlf. I've patched so the files are read as binary,
preventing this conversion.
Currently the rdi-share directory can't be built for a windows native
host http://sourceware.org/ml/gdb/2005-08/msg00058.html. I've copied the
embed.mt file, renamed to mingw_embed.mt and removed the parts which
don't build then patched configure.tgt so that the new .mt file is used
when building for a mingw host.
SIGTRAP isn't defined in the MinGW headers, I patched remote-sim.c to
define this if it's not defined.
There are some other problems to deal with to get the debugger working
with thumb code, my arm-elf toolchain is binutils 2.16.1, gcc 4.0.1 and
newlib 1.13.0. With this combination gdb doesn't recognise thumb symbols
in the generated elf, at least when setting breakpoints. Debugging ARM
only code seems to work well.
The attached patch is against current CVS HEAD. To whomever is
responsible for getting the gdb sources to a point where such minimal
patching is required on MinGW, great work, it's very much appreciated.
Dave.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mingw-gdb.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20050925/aedf0513/attachment.ksh>
More information about the Gdb-patches
mailing list