From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30433 invoked by alias); 19 Sep 2009 04:09:01 -0000 Received: (qmail 30424 invoked by uid 22791); 19 Sep 2009 04:08:59 -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 04:08:54 +0000 Received: from localhost (unknown [127.0.0.1]) by mailgw.tensilica.com (Postfix) with ESMTP id 81D771160607 for ; Sat, 19 Sep 2009 04:08:53 +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 28030-04 for ; Fri, 18 Sep 2009 21:08:53 -0700 (PDT) Received: from mail.tensilica.com (mail.tensilica.com [192.168.15.138]) by mailgw.tensilica.com (Postfix) with ESMTP id 53F5F1160567 for ; Fri, 18 Sep 2009 21:08:25 -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; Fri, 18 Sep 2009 21:08:25 -0700 Message-ID: <4AB45938.1060100@tensilica.com> Date: Sat, 19 Sep 2009 04:09:00 -0000 From: Maxim Grigoriev User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: Re: [commit] Fix Xtensa Call0 ABI prologue analysis References: <4AB45637.3070203@tensilica.com> In-Reply-To: <4AB45637.3070203@tensilica.com> Content-Type: multipart/mixed; boundary="------------060503080700030208040503" 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/msg00620.txt.bz2 --------------060503080700030208040503 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 349 Can somebody, please, give me an instruction on how to check this patch in to GDB 7.0 branch ? Or, just apply the patch. I don't have an access to the branch and wasn't able to find out how to get it. Thanks, -- Maxim Maxim Grigoriev wrote: > On Xtensa CALL0 ABI, prologue analysis does not work, when MSB is set in > the address(es). > > --------------060503080700030208040503 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. */ --------------060503080700030208040503--