From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18570 invoked by alias); 17 Sep 2007 13:20:07 -0000 Received: (qmail 18519 invoked by uid 22791); 17 Sep 2007 13:20:06 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Sep 2007 13:19:54 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 093859810B; Mon, 17 Sep 2007 13:19:53 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C33239810A; Mon, 17 Sep 2007 13:19:52 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IXGVz-0003RH-T2; Mon, 17 Sep 2007 09:19:51 -0400 Date: Mon, 17 Sep 2007 13:20:00 -0000 From: Daniel Jacobowitz To: Jerome Guitton Cc: gdb-patches@sourceware.org Subject: Re: [RFA] dwarf2loc, guard against null Message-ID: <20070917131951.GA13182@caradoc.them.org> Mail-Followup-To: Jerome Guitton , gdb-patches@sourceware.org References: <20070917120443.GA21276@adacore.com> <20070917121503.GA7606@caradoc.them.org> <20070917122654.GY93930@adacore.com> <20070917123048.GA8537@caradoc.them.org> <20070917131052.GA28874@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070917131052.GA28874@adacore.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00217.txt.bz2 On Mon, Sep 17, 2007 at 03:10:52PM +0200, Jerome Guitton wrote: > When the inferior is dead, target_has_registers (resp. > target_has_memory, target_has_stack) should be false and > deprecated_safe_get_selected_frame should return NULL. This is the bug > in my vxWorks-specific backend (I should pop some target vector at > mourn_inferior, I guess). Yes, that's probably it. If you stay connected to the target after mourning, you may want to look at the new target_mark_exited. I haven't had time to contribute the target extended-remote bits that go along with that yet but soon, soon... > Now back to the original problem: assertion or error? I guess that the > question is: in which cases get_frame_block can return NULL? Assertion, please. If we found a frame-relative symbol then it was certainly within some function associated with a frame. If we can't find the frame, something has gone wrong. -- Daniel Jacobowitz CodeSourcery