From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16566 invoked by alias); 30 Aug 2004 15:07:06 -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 16531 invoked from network); 30 Aug 2004 15:07:01 -0000 Received: from unknown (HELO miranda.se.axis.com) (212.209.10.220) by sourceware.org with SMTP; 30 Aug 2004 15:07:01 -0000 Received: from [10.84.130.1] (ironmaiden.se.axis.com [10.84.130.1]) by miranda.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id i7UF7005020018 for ; Mon, 30 Aug 2004 17:07:00 +0200 Message-ID: <41334294.9010906@axis.com> Date: Mon, 30 Aug 2004 15:07:00 -0000 From: Orjan Friberg Organization: Axis Communications User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [CRIS] Backtrace past clone Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00768.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? -- Orjan Friberg Axis Communications