From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25816 invoked by alias); 12 Oct 2006 05:21:59 -0000 Received: (qmail 25807 invoked by uid 22791); 12 Oct 2006 05:21:58 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO mswbj01.sunnorth.com.cn) (218.247.162.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Oct 2006 05:21:55 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by mswbj01.sunnorth.com.cn (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Thu, 12 Oct 2006 13:23:11 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id k9C6ZOmQ003192 for ; Thu, 12 Oct 2006 14:35:24 +0800 To: gdb@sourceware.org Cc: bjgnu@sunnorth.com.cn MIME-Version: 1.0 Subject: fail to get ra and bp X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: ligang@sunnorth.com.cn Date: Thu, 12 Oct 2006 05:21:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00070.txt.bz2 Hi all, I am porting GDB to a new target. The prologue has two insns ---- push ra and push bp. When back tracing and printing variables, gdb will look for return address of this frame and frame pointer on stack. Unfortunately, If compiling with -O2, the two insns are probably deleted. So, GDB will not get ra and bp value. It seems MIPS also fail to do this. Does it need to change ABI? Anyone has any thought? Thanks. Ligang