From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24829 invoked by alias); 22 Dec 2005 15:57:00 -0000 Received: (qmail 24811 invoked by uid 22791); 22 Dec 2005 15:57:00 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 22 Dec 2005 15:56:59 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EpSoL-0001Qk-Ca; Thu, 22 Dec 2005 10:56:57 -0500 Date: Fri, 23 Dec 2005 18:46:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb-patches@sourceware.org Subject: Re: [commit] Fix OpenBSD/i386 and OpenBSD/amd64 kernel trapframe unwinders Message-ID: <20051222155657.GA5280@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb-patches@sourceware.org References: <200512221409.jBME9L7W005129@elgar.sibelius.xs4all.nl> <20051222142013.GA3110@nevyn.them.org> <200512221520.jBMFK7fL029527@elgar.sibelius.xs4all.nl> <20051222152615.GA4248@nevyn.them.org> <200512221538.jBMFcErG006442@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512221538.jBMFcErG006442@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00267.txt.bz2 On Thu, Dec 22, 2005 at 04:38:14PM +0100, Mark Kettenis wrote: > Yup. There's a seperate entry point for every interrupt vector (hence > the strncmp() for "Xintr") and on top of that, interrupts can come > from both userland and from within the kernel. I only want to > terminate the backtrace when the interrupt came from userland. That's no worse than for Linux. This is actually all solvable with DWARF-2, and in fact, George Anzinger wrote bits to do it for Linux. They're a bit disgusting, though (and I hope he'll agree if he's reading this :-) http://source.mvista.com/~ganzinger/common_kgdb_cfi_annotations.patch He makes use of dwarf2 branches; I'm not sure if he ended up needing an extra physical stack frame anywhere, but I'm convinced it's possible to do without that. -- Daniel Jacobowitz CodeSourcery, LLC