From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11360 invoked by alias); 29 Mar 2007 06:36:37 -0000 Received: (qmail 11328 invoked by uid 22791); 29 Mar 2007 06:36:35 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s2.bay0.hotmail.com (HELO bay0-omc3-s2.bay0.hotmail.com) (65.54.246.202) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 29 Mar 2007 07:36:30 +0100 Received: from hotmail.com ([65.55.155.97]) by bay0-omc3-s2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Wed, 28 Mar 2007 23:36:28 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 28 Mar 2007 23:36:28 -0700 Message-ID: Received: from 65.55.155.123 by by144fd.bay144.hotmail.msn.com with HTTP; Thu, 29 Mar 2007 06:36:24 GMT X-Sender: kal_pana@hotmail.com In-Reply-To: <20070328112642.GA2502@caradoc.them.org> From: "Kalpana Ramamurthy" To: drow@false.org, kal_pana@hotmail.com Cc: gdb@sourceware.org Bcc: Subject: Re: gdb 6.4 does not stop unwinding even after reaching the lastframe. Date: Thu, 29 Mar 2007 06:36:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed 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: 2007-03/txt/msg00334.txt.bz2 Is there a way to fix this problem in gdb 6.4 itself. I have made a lot of code modifications to comply with my project requirements and it would be difficult to shift to any other version of gdb. The code that I am debugging does not have a main() as the last function on stack. Instead it has something else. Can I unwind till it finds that function and then stop unwinding ? I see a piece of code in frame.c for get_prev_frame() function which tests for backtrace_past_entry. There is also a backtrace_limit. Another function iniside_entry_func() seems to check if we are inside the entry function. Can we use all that to determine that the unwinding has now reached the entry level function and it should stop unwinding any further ? >From: Daniel Jacobowitz >To: Kalpana Ramamurthy >CC: gdb@sourceware.org >Subject: Re: gdb 6.4 does not stop unwinding even after reaching the >lastframe. >Date: Wed, 28 Mar 2007 07:26:42 -0400 > >On Wed, Mar 28, 2007 at 09:23:53AM +0000, Kalpana Ramamurthy wrote: > > Hello, > > > I am using gdb 6.4 for debugging the product that I work on. When I try >to > > print a bactrace, I get > > an extra frame at the end which looks like this : > > > #6 0x00000000 in ?? () > >There are not a lot of ways to safely indicate the end of the stack. >Due to some internal reorganization, GDB 6.x is usually better about >unwinding through strange things on the stack - but as a consequence >it sometimes unwinds through the last frame too. Please try a version >from CVS and see if it's any better; it may or may not be. > >-- >Daniel Jacobowitz >CodeSourcery _________________________________________________________________ Spice up your IM conversations. New, colorful and animated emoticons. Get chatting! http://server1.msn.co.in/SP05/emoticons/