From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17877 invoked by alias); 15 Sep 2014 16:06:26 -0000 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 Received: (qmail 17499 invoked by uid 89); 15 Sep 2014 16:06:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: homiemail-a51.g.dreamhost.com Received: from sub5.mail.dreamhost.com (HELO homiemail-a51.g.dreamhost.com) (208.113.200.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Sep 2014 16:06:10 +0000 Received: from homiemail-a51.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTP id 153B12E8076; Mon, 15 Sep 2014 09:06:09 -0700 (PDT) Received: from redwood.eagercon.com (c-24-7-16-38.hsd1.ca.comcast.net [24.7.16.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTPSA id D6B362E805C; Mon, 15 Sep 2014 09:06:08 -0700 (PDT) Message-ID: <54170E70.2080003@eagerm.com> Date: Mon, 15 Sep 2014 16:06:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Ajit Kumar Agarwal CC: "gdb-patches@sourceware.org" , Vinod Kathail , Vidhumouli Hunsigida , Nagaraju Mekala Subject: Re: [Patch, microblaze]: Add support of microblaze software single stepping References: <20140707145634.GF6038@adacore.com> <35bccb81-cae6-4581-b5fd-16dea7171d28@BN1AFFO11FD012.protection.gbl> <20140711135114.GA4888@adacore.com> <53C041BD.4060303@eagercon.com> <65f50a75-1a6c-4c32-8139-296b64e7fe99@BN1AFFO11FD047.protection.gbl> In-Reply-To: <65f50a75-1a6c-4c32-8139-296b64e7fe99@BN1AFFO11FD047.protection.gbl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00505.txt.bz2 On 07/14/14 03:27, Ajit Kumar Agarwal wrote: > Here are the dump of the disassembly and the output of single step command for branch with delay slot and imm instructions. Once again, please do not top post. >>> Please provide a disassembly of the test case and a log of the commands to gdb and gdb's output, showing stepping over imm and delay slot instructions > > BRANCH WITH DELAY SLOT > > Breakpoint 1, main () at ../src/helloworld.c:28 > 28 init_platform(); > (gdb) display /i $pc > 1: x/i $pc > => 0xc00001b0 : brlid r15, 172 // 0xc000025c > (gdb) si > init_platform () at ../src/platform.c:53 > 53 { > 1: x/i $pc > => 0xc000025c : addik r1, r1, -32 I see the same behavior on a bare-metal MicroBlaze target without your patch. > The same disassembly with
function given above > Without Single Stepping implementation there is a warning with the "warning: Remote failure reply: E01" with branch with delay slot. > > (gdb) display /i $pc > 1: x/i $pc > => 0xc00001b0 : brlid r15, 172 // 0xc000025c > (gdb) si > warning: Remote failure reply: E01 > > [Thread
] #1 stopped. > init_platform () at ../src/platform.c:53 > 53 { > 1: x/i $pc > => 0xc000025c : addik r1, r1, -32 > > WITH IMM instruction : There is a same warning without the single stepping patch "warning:Remote failure reply : E01". I'm not able to reproduce this error on a bare-metal system either big-endian or little-endian. The test case which you sent me offline does not show this error. Single-stepping on MicroBlaze appears to work correctly. It appears that the "passing" test you show above was run on a bare-metal system, while the "failing" test was run on a multi-threaded system, presumably Linux using gdbserver. Perhaps the error you are seeing is in gdbserver. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077