From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9655 invoked by alias); 19 Sep 2009 16:39:15 -0000 Received: (qmail 9643 invoked by uid 22791); 19 Sep 2009 16:39:13 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mailgw.tensilica.com (HELO mailgw.tensilica.com) (65.205.227.134) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Sep 2009 16:39:08 +0000 Received: from localhost (unknown [127.0.0.1]) by mailgw.tensilica.com (Postfix) with ESMTP id 5DB2211605E1 for ; Sat, 19 Sep 2009 16:39:07 +0000 (UTC) Received: from mailgw.tensilica.com ([127.0.0.1]) by localhost (mailgw.tensilica.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 28575-05 for ; Sat, 19 Sep 2009 09:39:07 -0700 (PDT) Received: from mail.tensilica.com (mail.tensilica.com [192.168.15.138]) by mailgw.tensilica.com (Postfix) with ESMTP id 3670E11605D9 for ; Sat, 19 Sep 2009 09:39:07 -0700 (PDT) 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; Sat, 19 Sep 2009 09:39:06 -0700 Message-ID: <4AB5092A.8090708@tensilica.com> Date: Sat, 19 Sep 2009 16:39:00 -0000 From: Maxim Grigoriev User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [commit] gdb_7_0-branch -- Fix Xtensa Call0 ABI prologue analysis References: <4AB45637.3070203@tensilica.com> In-Reply-To: <4AB45637.3070203@tensilica.com> Content-Type: multipart/mixed; boundary="------------090105060508050201040405" 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-09/txt/msg00635.txt.bz2 --------------090105060508050201040405 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 169 Same patch committed onto GDB 7.0 branch. Maxim Grigoriev wrote: > On Xtensa CALL0 ABI, prologue analysis does not work, when MSB is set in > the address(es). > > --------------090105060508050201040405 Content-Type: text/x-patch; name="xtensa-call0-MSB.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xtensa-call0-MSB.diff" Content-length: 682 2009-09-18 Maxim Grigoriev * xtensa-tdep.c (call0_analyze_prologue): Replace INT_MAX by UNIT_MAX. Index: gdb/xtensa-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/xtensa-tdep.c,v retrieving revision 1.39 diff -u -r1.39 xtensa-tdep.c --- gdb/xtensa-tdep.c 14 Aug 2009 00:32:32 -0000 1.39 +++ gdb/xtensa-tdep.c 19 Sep 2009 03:48:44 -0000 @@ -2125,7 +2125,7 @@ Assume we may be in the prologue until we hit a flow control instr. */ rtmp = NULL; - body_pc = INT_MAX; + body_pc = UINT_MAX; end_pc = 0; /* Find out, if we have an information about the prologue from DWARF. */ --------------090105060508050201040405--