From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30174 invoked by alias); 27 Feb 2003 18:27:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30167 invoked from network); 27 Feb 2003 18:27:07 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 27 Feb 2003 18:27:07 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 706942A9C; Thu, 27 Feb 2003 13:29:16 -0500 (EST) Message-ID: <3E5E58FC.3080704@redhat.com> Date: Thu, 27 Feb 2003 18:27:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michal Ludvig Cc: GDB Patches Subject: Re: [patch/rfc] Add a sentinel frame References: <3E305670.3020700@redhat.com> <3E48378E.6090007@suse.cz> <3E492953.8010001@redhat.com> <3E52173B.1030800@suse.cz> <3E538770.6070209@redhat.com> <3E5B98D8.3030002@suse.cz> <3E5BAB7D.8090801@redhat.com> <3E5BD957.9010605@suse.cz> <3E5BDCBD.2030205@redhat.com> <3E5C7512.2080207@suse.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00772.txt.bz2 Michal, To give this x86-64 thread clear closure. The internal-error you are seeing from the new frame code is now, officially, "not-a-frame-bug". The underlying problem is caused by a design flaw (one of many) in the original CFI code (on which the x86-64 depends). It's trying to use the CFI unwinder on a block of code that either: has no CFI information; or has CFI information that isn't relevant to the stack frame being unwound. Using CFI to unwind such a frame is meaningless. Please read the two cited posts below to get at least a feel for what the x86-64 needs to do for the problem to be fixed: http://sources.redhat.com/ml/gdb/2003-02/msg00549.html http://sources.redhat.com/ml/gdb-patches/2003-02/msg00668.html I've already cooked up a draft patch that adds gdbarch_unwind_dummy_id() to the architecture vector (mumble something about needing documentation). To fix this problem, the x86-64 will need to implement both that and the save_dummy_frame_tos() method. Andrew