From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2306 invoked by alias); 23 Feb 2004 15:51:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2298 invoked from network); 23 Feb 2004 15:51:50 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 23 Feb 2004 15:51:50 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 559C12B92; Mon, 23 Feb 2004 10:51:47 -0500 (EST) Message-ID: <403A2193.4090401@gnu.org> Date: Mon, 23 Feb 2004 15:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: "Vineet Sharma, Noida" Cc: gdb@sources.redhat.com Subject: Re: unwind_pc References: <1B3885BC15C7024C845AAC78314766C503929120@exch-01.noida.hcltech.com> In-Reply-To: <1B3885BC15C7024C845AAC78314766C503929120@exch-01.noida.hcltech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00318.txt.bz2 > Hi All, > Whats the main purpose of the unwind_pc() ? What is it > supposed to do?. which target doesnt need it and why? @item CORE_ADDR unwind_pc (struct frame_info *@var{this_frame}) @findex unwind_pc @anchor{unwind_pc} Return the instruction address, in @var{this_frame}'s caller, at which execution will resume after @var{this_frame} returns. This is commonly refered to as the return address. The implementation, which must be frame agnostic (work with any frame), is typically no more than: @smallexample ULONGEST pc; frame_unwind_unsigned_register (this_frame, D10V_PC_REGNUM, &pc); return d10v_make_iaddr (pc); @end smallexample Andrew