From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1619 invoked by alias); 6 Mar 2008 10:05:31 -0000 Received: (qmail 1609 invoked by uid 22791); 6 Mar 2008 10:05:31 -0000 X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 10:05:11 +0000 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 51196323D6; Thu, 6 Mar 2008 11:05:09 +0100 (CET) From: Andreas Schwab To: "Yakov Lerner" Cc: gdb@sourceware.org Subject: Re: guessing where address belongs to References: <1204746687.19253.610.camel@localhost.localdomain> X-Yow: Hand me a pair of leather pants and a CASIO keyboard -- I'm living for today! Date: Thu, 06 Mar 2008 10:46:00 -0000 In-Reply-To: (Yakov Lerner's message of "Thu\, 6 Mar 2008 08\:04\:01 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00064.txt.bz2 "Yakov Lerner" writes: > 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 ? The details are highly dependent on the malloc implementation. There is no way to find that out without intimate knowledge of the implementation. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."