From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4119 invoked by alias); 12 Oct 2006 04:33:56 -0000 Received: (qmail 4111 invoked by uid 22791); 12 Oct 2006 04:33:55 -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 04:33:51 +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 12:35:10 +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 k9C5lImQ003027 for ; Thu, 12 Oct 2006 13:47:18 +0800 From: bjgnu@sunnorth.com.cn To: gdb@sourceware.org Subject: fail to get ra and bp MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: Date: Thu, 12 Oct 2006 04:33: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/msg00068.txt.bz2 Hi all, 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. Anyone has any thought? Thanks. ligang