From: Martin Str|mberg Message-Id: <199903221307.OAA29513@father.ludd.luth.se> Subject: Re: Patch for GDB touching bad addresses To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS) Date: Mon, 22 Mar 1999 14:07:46 +0100 (MET) Cc: nate AT cartsys DOT com X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Your patch is very similar to one I submitted to the porter of gdb. Here's part of my patch: 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, wr ite); #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, wr ite); #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); ! } ! } ! } Misery Loves Company, Need Another One, MartinS