delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/27/18:11:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <gene_spleen AT hotmail DOT com>
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
Message-ID: <LAW2-F85x8VUkRacUtI00001da5@hotmail.com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019