From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29606 invoked by alias); 25 Jun 2012 22:28:14 -0000 Received: (qmail 29596 invoked by uid 22791); 25 Jun 2012 22:28:13 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-we0-f169.google.com (HELO mail-we0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jun 2012 22:28:01 +0000 Received: by wefh52 with SMTP id h52so3917257wef.0 for ; Mon, 25 Jun 2012 15:28:00 -0700 (PDT) Received: by 10.216.142.102 with SMTP id h80mr7351927wej.36.1340663280106; Mon, 25 Jun 2012 15:28:00 -0700 (PDT) Received: from [151.59.166.124] ([151.59.166.124]) by mx.google.com with ESMTPS id fm1sm499008wib.10.2012.06.25.15.27.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jun 2012 15:27:59 -0700 (PDT) References: Message-Id: <8347C635-3CB0-4967-8BCB-5AA28FC204B1@gmail.com> From: Mirko Banchi To: Zvi Vered In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPhone Mail 7E18) Subject: Re: How can I modify the source of new,malloc Date: Mon, 25 Jun 2012 22:28:00 -0000 Cc: "crossgcc@sourceware.org" X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00048.txt.bz2 You could write your own shared object with your malloc implementation and use LD_PRELOAD var. Mirko Il giorno 25/giu/2012, alle ore 23.55, Zvi Vered ha scritto: > Hello, > > I'm using crosstool-ng 5.1.2 to create gcc 4.3.2 > The project started 3 years ago. This is the reason for the old > version. > I modify the code of new,malloc so it will print a message each time > they are called. > Where is the code of those routines ? > Are they part of glibc ? > > I have a huge application (not written by me). > I want to track all places where a dynamic allocation is done. > Is there an alternative to my way ? > > Thanks, > Zvika > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > -- For unsubscribe information see http://sourceware.org/lists.html#faq