linux-mips
[Top] [All Lists]

Re: single step in MIPS

To: "Ralf Baechle" <ralf@linux-mips.org>
Subject: Re: single step in MIPS
From: "Nida M" <nidajm@gmail.com>
Date: Mon, 25 Sep 2006 11:49:58 +0530
Cc: "Kevin D. Kissell" <KevinK@mips.com>, linux-mips@linux-mips.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RybVLn5GPgS62rZy61CfQc3k/TfMs4+R7CB77VCtAvyf46hsK8gifDaI6LalcK1xsK5jbf1VDZ0XSkbRm7hFBd3HDpXgJVZOx0e0FfI8JZxQYZ5E21J5eFv6QM9qbQjbbdBX4Kw7AmOO16hnfv9clZl7KNG7pG5j5QCxDcxiLLk=
In-reply-to: <b01966ec0609062322i249c11a7iea0baf8aa0ee43bd@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <b01966ec0609020445m693b53cfj87d31a4957627f1a@mail.gmail.com> <000b01c6cea8$7d480fa0$a803a8c0@Ulysses> <b01966ec0609032157s35d8c0bdx900956f214c5337b@mail.gmail.com> <20060907035424.GB17965@linux-mips.org> <b01966ec0609062322i249c11a7iea0baf8aa0ee43bd@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Hi,


On 9/7/06, Nida M <nidajm@gmail.com> wrote:
> Insert a breakpoint instruction after the instruction you want to single
> step. Anything that triggers an exception but typicall a "break 0" would
> be used for debuggers.  Branches need special care.  Either they need to
> be executed in software or breakpoints at both the branch-taken and the
> not-taken address need to be inserted.

Instead of break 0, can I use  Trap Exception 'Tr'  with the special
case for single step BRK_SSTEPBP (break 5)
E.g : teq rs,rt,code

      which is nothing but :
      bne rs,rt,1f
      nop
      break code

....... ???
> And with all those hints I leave the special case of instructions in
> branch delay slots to the you, I'm sure you'll find it trivial ;-)

Thanks,I think i will do that




~Nida


<Prev in Thread] Current Thread [Next in Thread>