From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4716 invoked by alias); 6 May 2009 00:35:57 -0000 Received: (qmail 4706 invoked by uid 22791); 6 May 2009 00:35:56 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hq2.tensilica.com (HELO maia.hq.tensilica.com) (65.205.227.30) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 May 2009 00:35:51 +0000 Received: from exch.hq.tensilica.com (exch.hq.tensilica.com [192.168.15.138]) by maia.hq.tensilica.com (8.13.1/8.13.1) with ESMTP id n460Zn5K010465 for ; Tue, 5 May 2009 17:35:49 -0700 Received: from [192.168.11.68] (192.168.11.68) by exch.hq.tensilica.com (192.168.15.138) with Microsoft SMTP Server id 8.1.358.0; Tue, 5 May 2009 17:35:50 -0700 Message-ID: <4A00DB65.1060707@tensilica.com> Date: Wed, 06 May 2009 00:35:00 -0000 From: Maxim Grigoriev User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Subject: [PATCH] Content-Type: multipart/mixed; boundary="------------030103010807000504050807" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00096.txt.bz2 --------------030103010807000504050807 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 106 This patch fixes Xtensa backtrace which is broken when frame_func_unwind () returns bad value. -- Maxim --------------030103010807000504050807 Content-Type: text/x-patch; name="xtensa-cisco-fix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xtensa-cisco-fix.diff" Content-length: 726 2009-05-05 Maxim Grigoriev * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc. Index: gdb/xtensa-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/xtensa-tdep.c,v retrieving revision 1.33 diff -u -r1.33 xtensa-tdep.c --- gdb/xtensa-tdep.c 17 Apr 2009 15:44:28 -0000 1.33 +++ gdb/xtensa-tdep.c 6 May 2009 00:28:01 -0000 @@ -1242,7 +1242,7 @@ cache->wd.ws = ws & ~(1 << wb); cache->pc = get_frame_func (this_frame); - cache->ra = (cache->pc & 0xc0000000) | (ra & 0x3fffffff); + cache->ra = (pc & 0xc0000000) | (ra & 0x3fffffff); cache->ps = (ps & ~PS_CALLINC_MASK) | ((WINSIZE(ra)/4) << PS_CALLINC_SHIFT); } --------------030103010807000504050807--