From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4095 invoked by alias); 23 Mar 2011 20:31:20 -0000 Received: (qmail 4021 invoked by uid 55); 23 Mar 2011 20:31:04 -0000 Date: Wed, 23 Mar 2011 21:13:00 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/48220] DW_OP_GNU_entry_value/DW_TAG_GNU_call_site_parameter vs. register window targets X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg02477.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48220 --- Comment #5 from Jakub Jelinek 2011-03-23 20:30:53 UTC --- (In reply to comment #4) > Yes, end of the prologue. I was under the impression that, with your alternate > scheme, the opposite situation would arise, i.e. it wouldn't be possible to use > DW_OP_GNU_entry_value after the end of the prologue. Given how GDB works, this > sounded far less appealing than the current scheme. Sorry if I misunderstood. If say reference to first parameter's original value is DW_OP_GNU_entry_value 1 (i.e. %o0), then it will work just fine anywhere in the function. The debugger either looks up matching entry for %o0 in DW_TAG_GNU_call_site, or a debugger could put a breakpoint on the first insn in a function and remember the %o0 value there, then just use the remembered value anywhere where DW_OP_GNU_entry_value appears. And for SPARC, using %o0 is also much easier for the debugger, it doesn't have to translate anything. On IA-64 things are different because there it is mainly the call insn which moves the register window, not some insn executed somewhere in function's prologue.