From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17868 invoked by alias); 30 Aug 2004 20:10:50 -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 17801 invoked from network); 30 Aug 2004 20:10:49 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 30 Aug 2004 20:10:49 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i7UKAhS2015935 for ; Mon, 30 Aug 2004 16:10:43 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i7UKAX301963; Mon, 30 Aug 2004 16:10:33 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BDA742B9D; Mon, 30 Aug 2004 16:09:23 -0400 (EDT) Message-ID: <41338973.1060508@gnu.org> Date: Mon, 30 Aug 2004 20:10:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040801 MIME-Version: 1.0 To: Orjan Friberg Cc: gdb-patches@sources.redhat.com Subject: Re: [CRIS] Backtrace past clone References: <41334294.9010906@axis.com> In-Reply-To: <41334294.9010906@axis.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00775.txt.bz2 > I'm having trouble with backtrace not stopping at clone (in the child). Normally I rely on the Dwarf-2 CFI, but clone doesn't have any, so this falls back on the manual unwinder. > > I understand that using frame pointer register != 0 is dubious (since the code we may end up analyzing in the manual unwinder could be compiled without a frame pointer), although the glibc clone function for CRIS does set the frame pointer to 0. Other than that, I can't see how to detect that the call stack ends for the child. > > I see this has been discussed for MIPS in the thread starting at http://sources.redhat.com/ml/gdb-patches/2004-03/msg00128.html, which also references missing Dwarf-2 information. Besides this, "grep clone" in src/gdb gave surprisingly few hits, as did searching for "clone backtrace" in the gdb-patches archive. The lack of architecture -specific search results me wonder if this is something that should be handled by the Dwarf-2 unwinder (and that what needs to be fixed is the missing Dwarf-2 CFI for clone). > > Any suggestions? Have a look at http://sources.redhat.com/ml/gdb/2004-08/msg00027.html Andrew