From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25232 invoked by alias); 9 May 2012 20:25:01 -0000 Received: (qmail 25213 invoked by uid 22791); 9 May 2012 20:25:00 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 May 2012 20:24:47 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q49KOlNd015772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 9 May 2012 16:24:47 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q49KOjIw001347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 9 May 2012 16:24:46 -0400 From: Tom Tromey To: Hei Chan Cc: "gdb\@sourceware.org" Subject: Re: Memory Dump References: <1335710405.38804.YahooMailNeo@web162403.mail.bf1.yahoo.com> Date: Wed, 09 May 2012 20:25:00 -0000 In-Reply-To: <1335710405.38804.YahooMailNeo@web162403.mail.bf1.yahoo.com> (Hei Chan's message of "Sun, 29 Apr 2012 07:40:05 -0700 (PDT)") Message-ID: <8762c5rtki.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00032.txt.bz2 >>>>> "Hei" == Hei Chan writes: Hei> I wonder whether it is possible to dump all the objects created in the Hei> memory at the moment with GDB (I am on v7.0.1). Hei> What I am trying to achieve is to identify which types of objects take Hei> up most of the memory at the moment. In addition to the other answers, you might be interested in gdb-heap: https://fedorahosted.org/gdb-heap/ Tom