Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Joe Buehler <jbuehler@hekimian.com>
Newsgroups: gmane.os.cygwin
Subject: patch to make strace printfs available to C code
Date: Mon, 08 Jul 2002 14:12:36 -0400
Lines: 12
Message-ID: <3D29D614.5030809@hekimian.com>
NNTP-Posting-Host: hekimian.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1026151913 20935 206.205.138.10 (8 Jul 2002 18:11:53 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Mon, 8 Jul 2002 18:11:53 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530
X-Accept-Language: en-us, en

Attached is a short patch that makes the various strace printf macros
available in C code and not just C++.  It could be made more efficient
(avoid a function call) by moving a class attribute out of the strace
class and making it a global variable.

I will send in a patch to dlmalloc.c to use this, once I clean it
up a little.  The idea being to dump malloc debugging output to
strace instead of stderr, so there is more context about what is
going on when the malloc check stuff finds something worth reporting.

Joe Buehler




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

