From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21588 invoked by alias); 14 Feb 2003 15:14:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21575 invoked from network); 14 Feb 2003 15:14:54 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 14 Feb 2003 15:14:54 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18jjRK-0000Lt-00; Fri, 14 Feb 2003 11:15:54 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18jhYB-0008Ti-00; Fri, 14 Feb 2003 10:14:51 -0500 Date: Fri, 14 Feb 2003 15:14:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Kevin Buettner , gdb@sources.redhat.com Subject: Re: frame_register_unwind(): "frame != NULL" assertion failure Message-ID: <20030214151451.GC30416@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Kevin Buettner , gdb@sources.redhat.com References: <1030213212349.ZM2427@localhost.localdomain> <20030213212904.GA14115@nevyn.them.org> <1030213213526.ZM2489@localhost.localdomain> <1030213214819.ZM2541@localhost.localdomain> <1030213232706.ZM8198@localhost.localdomain> <3E4D042F.3060102@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E4D042F.3060102@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00236.txt.bz2 On Fri, Feb 14, 2003 at 03:58:55PM +0100, Andrew Cagney wrote: > >Here's one possible "fix" for the assertion failure. I've come to the > >conclusion that the real culprit is get_next_frame(), but, unfortunately, > >the rest of gdb is not yet ready for it to return the sentinel frame. > >(See the comment in the patch for more info.) So, until it is, I propose > >that we use this hack... > > > > * frame.c (create_sentinel_frame): Make static. Add forward > > declaration. > > (frame_register_unwind): Add hack for converting NULL frames > > into a sentinel frame. > > I think, if there is going to be a hac, then it should be in > read_next_frame_reg(). > > However, can you please first investigate modifying the start of > mips_init_extra_frame_info() where it does: > > proc_desc = get_next_frame (fci) ? ..... > > to, when get_next_frame(fci) is null, call: > > find_proc_desc (get_frame_pc (fci), fci, 1); > > that is the current, and not prev frame. I'm pretty sure that won't work - we're initializing the saved regs for fci right now, and find_proc_desc wants a frame to read registers out of. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer