From: Mirko Banchi <mk.banchi@gmail.com>
To: Zvi Vered <veredz72@gmail.com>
Cc: "crossgcc@sourceware.org" <crossgcc@sourceware.org>
Subject: Re: How can I modify the source of new,malloc
Date: Mon, 25 Jun 2012 22:28:00 -0000 [thread overview]
Message-ID: <8347C635-3CB0-4967-8BCB-5AA28FC204B1@gmail.com> (raw)
In-Reply-To: <CABRndgyp4rHCgi5mkpFjQeDjrR2KFUY5OxFNVzPvyWAWhZ4t5Q@mail.gmail.com>
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 <veredz72@gmail.com>
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
next prev parent reply other threads:[~2012-06-25 22:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 21:55 Zvi Vered
2012-06-25 22:28 ` Mirko Banchi [this message]
2012-06-26 20:14 ` Yann E. MORIN
2012-06-26 20:21 ` Joel Sherrill
2012-06-27 9:17 ` Eric Doenges
2012-06-27 9:51 ` Eric Doenges
2012-06-27 20:05 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8347C635-3CB0-4967-8BCB-5AA28FC204B1@gmail.com \
--to=mk.banchi@gmail.com \
--cc=crossgcc@sourceware.org \
--cc=veredz72@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).