This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Cygwin/MinGW cross hosted on Linux
- To: <binutils at sources dot redhat dot com>
- Subject: Cygwin/MinGW cross hosted on Linux
- From: "Reinhard JESSICH" <Reinhard dot JESSICH at frequentis dot com>
- Date: Wed, 13 Jun 2001 14:01:22 +0200
- Cc: <reinhard dot jessich at telering dot at>
Hello everybody!
I am currently not on the list, so please reply directly to me (both addresses).
I want to make a cross gdb form Cygwin/MinGW to read coredumps written on
the Windows target. I am ready with gdb, but I can't read the coredumps,
because the coredump support in bfd is not enabled if cross compiling.
I have seen this in bfd's configure.in:
# If we are configured native, pick a core file support file.
if test "${target}" = "${host}"; then
case "${host}" in
....
# ELF corefile support has several flavors, but all of
# them use something called <sys/procfs.h>
AC_CHECK_HEADERS(sys/procfs.h)
if test "$ac_cv_header_sys_procfs_h" = yes; then
...
BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
fi
I can now add an else to the 'if native' and some things to enable the build
for cross. I can add some needed headers into the main include directory.
But is this the prefered way?
What is the recomended strategy to do this?
Please help to prevent me to go in the wrong direction.
Regards,
Reinhard
PS: Please reply to both addresses.