Cygwin/MinGW cross hosted on Linux

Reinhard JESSICH Reinhard.JESSICH@frequentis.com
Wed Jun 13 05:02:00 GMT 2001


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.




More information about the Binutils mailing list