www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000208

When Created: 02/23/1998 05:00:54
Against DJGPP version: 2.01
By whom: Martin.Stromberg@lu.erisoft.se
Abstract: gdb print something when the memory in question is unavailable.
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}
 

Solution added: 02/23/1998 05:02:56
By whom: Martin.Stromberg@lu.erisoft.se
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);
!       }
!     }
!
  }
 
  /* ----------------------------------------------------------------------------- */

Fixed in version on 04/12/1999 10:00:08
By whom: eliz@is.elta.co.il

Solution added: 04/12/1999 10:00:58
By whom: eliz@is.elta.co.il
Will be fixed in the debugger support in v2.03.



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010