Here's part of a run with gdb on df.
(gdb) p mnt
$1 = (struct mntent *) 0xffffffff
(gdb) p *mnt
$2 = {mnt_fsname = 0xfffffff0 "\200Y", mnt_dir = 0x2e29544e "\200Y",
mnt_type = 0xa "\200Y", mnt_opts = 0x0, mnt_freq = 0,
mnt_passno = 353984, mnt_time = 0}
Here a patch that correct this:
diff -r -c3 gdb.org/gnu/gdb-4.16/gdb/go32targ.c d:gdb/go32targ.c
*** gdb.org/gnu/gdb-4.16/gdb/go32targ.c Sun Sep 8 19:46:46 1996
--- d:gdb/go32targ.c Thu Feb 19 02:57:00 1998
***************
*** 270,279 ****
printf_unfiltered("go32_xfer_memory %x %x %d %d\n", memaddr, myaddr, len, write);
#endif
if (write)
! write_child(memaddr, myaddr, len);
else
! read_child(memaddr, myaddr, len);
! return len;
}
/* ----------------------------------------------------------------------------- */
--- 270,297 ----
printf_unfiltered("go32_xfer_memory %x %x %d %d\n", memaddr, myaddr, len, write);
#endif
if (write)
! {
! if(write_child(memaddr, myaddr, len))
! {
! return(0);
! }
! else
! {
! return(len);
! }
! }
else
! {
! if(read_child(memaddr, myaddr, len))
! {
! return(0);
! }
! else
! {
! return(len);
! }
! }
!
}
/* ----------------------------------------------------------------------------- */