From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23555 invoked by alias); 6 Mar 2008 20:24:22 -0000 Received: (qmail 23547 invoked by uid 22791); 6 Mar 2008 20:24:22 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 20:24:04 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 8B2C83C531; Thu, 6 Mar 2008 12:24:02 -0800 (PST) Subject: Re: guessing where address belongs to From: Michael Snyder To: Yakov Lerner Cc: gdb@sourceware.org In-Reply-To: References: <1204746687.19253.610.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 06 Mar 2008 20:27:00 -0000 Message-Id: <1204835042.19253.688.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) 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: 2008-03/txt/msg00079.txt.bz2 On Thu, 2008-03-06 at 07:38 +0200, Yakov Lerner wrote: > Ok, I will try to spec it. Regarding guessing of the > "heap objects", I have this question: > > Gdb has no integration with malloc, correct ? > Gdb has no way of enumerating all malloced > pieces ("heap objects"), correct ? > > Or gdb does have a way of guessing which "heap > object" some address X (that points inside the heap) belongs to ? Nope -- the heap is just a big opaque blob. GDB has no knowledge of what's inside it, and in fact you're doing well if you can figure out where and how big it is.