From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2572 invoked by alias); 12 Apr 2004 21:05:16 -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 2560 invoked from network); 12 Apr 2004 21:05:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 12 Apr 2004 21:05:12 -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 i3CL5Bu6018606 for ; Mon, 12 Apr 2004 17:05:11 -0400 Received: from zenia.home.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 i3CL5Aj00955; Mon, 12 Apr 2004 17:05:10 -0400 To: Daniel Jacobowitz Cc: Andrew Cagney , jim.houston@comcast.net, gdb-patches@sources.redhat.com Subject: Re: [patch] allow switching stacks References: <404E2745.2090405@gnu.org> <20040409215453.GA1090@nevyn.them.org> From: Jim Blandy Date: Mon, 12 Apr 2004 21:05:00 -0000 In-Reply-To: <20040409215453.GA1090@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-04/txt/msg00261.txt.bz2 Daniel Jacobowitz writes: > There's no way in unwind information to annotate a non-call frame, > which is the common relevant property for signal frames, dummy frames, > and interrupt handler frames. Should there be? There isn't? For signal frames, for example, the registers are all saved in the ucontext_t, on the signal handler's stack. Can't we hand-build Dwarf 2 CFI that points into the ucontext_t? On IA-32 machines, the processor saves %eflags, %eip, and %cs, and possibly %esp and %ss, and it's up to the handler code to save whatever else needs preserving. We could hand-build Dwarf 2 CFI for that, too.