From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16368 invoked by alias); 22 Jan 2009 03:58:06 -0000 Received: (qmail 16359 invoked by uid 22791); 22 Jan 2009 03:58:05 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Jan 2009 03:58:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B55F42A9683; Wed, 21 Jan 2009 22:57:58 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cnEA6TY5k41v; Wed, 21 Jan 2009 22:57:58 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 044C32A967F; Wed, 21 Jan 2009 22:57:57 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 39A69E7ACD; Thu, 22 Jan 2009 07:57:51 +0400 (RET) Date: Thu, 22 Jan 2009 03:58:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb@sourceware.org, vargaz@gmail.com Subject: Re: hook-stop sees dummy frames, bug or feature? Message-ID: <20090122035751.GW5709@adacore.com> References: <200901220323.18225.pedro@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200901220323.18225.pedro@codesourcery.com> User-Agent: Mutt/1.4.2.2i 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: 2009-01/txt/msg00152.txt.bz2 FWIW, I think that the gdb-6.8 behavior: > >gdb-6.8 ./gdb [...] > (top-gdb) p malloc (0) > #0 <<<<<< "frame" in hook-stop > Current language: auto; currently asm > $1 = 11407376 <<<<<< 'malloc (0)' result > Current language: auto; currently c > (top-gdb) frame <<<<<< "frame" again shows something else. > #0 main (argc=1, argv=0x7ffff00043f8) at ../../src/gdb/gdb.c:28 > 28 memset (&args, 0, sizeof args); To be less useful than the current CVS: > (top-gdb) p malloc (0) > #0 main (argc=1, argv=0x7fffffffe408) at ../../src/gdb/gdb.c:28 <<< "frame" in hook-stop. > 28 memset (&args, 0, sizeof args); > $1 = 11407440 > (top-gdb) So I like the new behavior a little better. -- Joel