From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8339 invoked by alias); 29 Apr 2012 14:40:37 -0000 Received: (qmail 8327 invoked by uid 22791); 29 Apr 2012 14:40:36 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nm14.bullet.mail.bf1.yahoo.com (HELO nm14.bullet.mail.bf1.yahoo.com) (98.139.212.173) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 29 Apr 2012 14:40:06 +0000 Received: from [98.139.215.142] by nm14.bullet.mail.bf1.yahoo.com with NNFMP; 29 Apr 2012 14:40:05 -0000 Received: from [98.139.212.220] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 29 Apr 2012 14:40:05 -0000 Received: from [127.0.0.1] by omp1029.mail.bf1.yahoo.com with NNFMP; 29 Apr 2012 14:40:05 -0000 Received: (qmail 48070 invoked by uid 60001); 29 Apr 2012 14:40:05 -0000 Received: from [67.180.219.138] by web162403.mail.bf1.yahoo.com via HTTP; Sun, 29 Apr 2012 07:40:05 PDT Message-ID: <1335710405.38804.YahooMailNeo@web162403.mail.bf1.yahoo.com> Date: Sun, 29 Apr 2012 14:40:00 -0000 From: Hei Chan Reply-To: Hei Chan Subject: Memory Dump To: "gdb@sourceware.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-04/txt/msg00221.txt.bz2 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