From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2359 invoked by alias); 6 Dec 2004 04:59:41 -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 2322 invoked from network); 6 Dec 2004 04:59:36 -0000 Received: from unknown (HELO arwen.tausq.org) (64.81.244.109) by sourceware.org with SMTP; 6 Dec 2004 04:59:36 -0000 Received: by arwen.tausq.org (Postfix, from userid 1000) id 57ED46BE16; Sun, 5 Dec 2004 20:59:33 -0800 (PST) Date: Mon, 06 Dec 2004 06:22:00 -0000 From: Randolph Chung To: gdb-patches@sources.redhat.com Subject: Re: [patch/rfa] allow unwinding "past main" for dummy frames Message-ID: <20041206045933.GG6359@tausq.org> Reply-To: Randolph Chung References: <20041206032726.GB6359@tausq.org> <20041206034013.GA31944@nevyn.them.org> <20041206041458.GF6359@tausq.org> <20041206042736.GA496@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041206042736.GA496@nevyn.them.org> X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.6+20040722i X-SW-Source: 2004-12/txt/msg00156.txt.bz2 > Some sense, but not good sense. > > Can we edit the space registers ourselves? If so, why don't we rely on > that? I'm not talking about the call, just the return. So generate a > call to __gcc_plt_call with a return address anywhere you please, and > after the dummy call when we restore the saved regcache the space > registers will be right again. So you could just use _start. the problem is precisely that ... the register that we need to restore (pcsqh/pcsqt) cannot be written to by gdb :( randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/