Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagerm.com>
To: Ajit Kumar Agarwal <ajit.kumar.agarwal@xilinx.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 Vinod Kathail <vinodk@xilinx.com>,
	Vidhumouli Hunsigida <vidhum@xilinx.com>,
	 Nagaraju Mekala <nmekala@xilinx.com>
Subject: Re: [Patch, microblaze]: Add support of microblaze software single stepping
Date: Mon, 15 Sep 2014 16:06:00 -0000	[thread overview]
Message-ID: <54170E70.2080003@eagerm.com> (raw)
In-Reply-To: <65f50a75-1a6c-4c32-8139-296b64e7fe99@BN1AFFO11FD047.protection.gbl>

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 <main+16>:	brlid	r15, 172	// 0xc000025c
> (gdb) si
> init_platform () at ../src/platform.c:53
> 53	{
> 1: x/i $pc
> => 0xc000025c <init_platform>:	addik	r1, r1, -32

I see the same behavior on a bare-metal MicroBlaze target without
your patch.

> The same disassembly with <main> 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 <main+16>:	brlid	r15, 172	// 0xc000025c
> (gdb) si
> warning: Remote failure reply: E01
>
> [Thread <main>] #1 stopped.
> init_platform () at ../src/platform.c:53
> 53	{
> 1: x/i $pc
> => 0xc000025c <init_platform>:	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


  reply	other threads:[~2014-09-15 16:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06  6:13 Ajit Kumar Agarwal
2014-07-07 14:56 ` Joel Brobecker
2014-07-11 12:53   ` Ajit Kumar Agarwal
2014-07-11 14:05     ` Joel Brobecker
2014-07-11 14:42       ` Ajit Kumar Agarwal
2014-07-11 19:44       ` Ajit Kumar Agarwal
2014-07-11 20:58         ` Michael Eager
2014-07-14 11:42           ` Ajit Kumar Agarwal
2014-09-15 16:06             ` Michael Eager [this message]
2014-07-20 14:03       ` Ajit Kumar Agarwal
  -- strict thread matches above, loose matches on Subject: below --
2014-06-20  6:10 Ajit Kumar Agarwal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54170E70.2080003@eagerm.com \
    --to=eager@eagerm.com \
    --cc=ajit.kumar.agarwal@xilinx.com \
    --cc=gdb-patches@sourceware.org \
    --cc=nmekala@xilinx.com \
    --cc=vidhum@xilinx.com \
    --cc=vinodk@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox