From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13142 invoked by alias); 3 May 2012 06:56:08 -0000 Received: (qmail 13128 invoked by uid 22791); 3 May 2012 06:56:07 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB X-Spam-Check-By: sourceware.org Received: from forward15.mail.yandex.net (HELO forward15.mail.yandex.net) (95.108.130.119) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 06:55:53 +0000 Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward15.mail.yandex.net (Yandex) with ESMTP id 02C9D9E1B0C; Thu, 3 May 2012 10:55:51 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id D6562E40511; Thu, 3 May 2012 10:55:51 +0400 (MSK) Received: from kts.bestnet.kharkov.ua (kts.bestnet.kharkov.ua [80.92.226.138]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTP id to80Ymkc-tp8muv1h; Thu, 3 May 2012 10:55:51 +0400 Message-ID: <4FA22BFD.1060600@yandex.ru> Date: Thu, 03 May 2012 06:56:00 -0000 From: xgsa User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120411 Thunderbird/11.0.1 MIME-Version: 1.0 To: Hei Chan CC: "gdb@sourceware.org" Subject: Re: Memory Dump References: <1335710405.38804.YahooMailNeo@web162403.mail.bf1.yahoo.com> In-Reply-To: <1335710405.38804.YahooMailNeo@web162403.mail.bf1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00006.txt.bz2 Hi, I am not sure, but it seems massif (the tool from the valgrind toolchain) could help you. P.S. However the question is still interesting - is there a possibility to solve the problem with gdb? Could someone answer it? Anton. -------- Original message -------- > > Hi, > > I wonder whether it is possible to dump all the objects created in the memory at the moment with GDB (I am on v7.0.1). > > What I am trying to achieve is to identify which types of objects take up most of the memory at the moment. > > Valgrind doesn't catch it and so I believe that it is some logical bug in my code that keeps creating the objects and free all of them at the end (i.e. program terminated). > > Thanks in advance. > > > Cheers, > Hei > >