Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [216.46.68.139] From: "Gene Spleen" To: cygwin AT cygwin DOT com Subject: Better diagnostics in mmap.cc Date: Tue, 27 Feb 2001 18:03:30 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Feb 2001 23:03:31.0139 (UTC) FILETIME=[80A81930:01C0A111] I'm trying to debug ipc-daemon, et al, and have found the cygwin libraries impossible to build for various reasons. This is a problem because I'm trying to debug a problem inside mmap.cc. It would be great if you could add syscall_printf to the beggining of all calls in this module, much like what was done with extern "C" caddr_t mmap (caddr_t addr, size_t len, int prot, int flags, int fd, off_t off) { syscall_printf ("addr %x, len %d, prot %x, flags %x, fd %d, off %d", addr, len, prot, flags, fd, off); In particular, since map_map seems to be failing on VirtualProtect (GetLastError()==487), logging off and len would be helpfull, as would adding the parameter passed to VirtualProtect when executing: syscall_printf ("-1 = map_map (): %E"); (in both places). This should help hugely. Thank you _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple