Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Peter Barada <peter@the-baradas.com>
To: mohanlaljangir@hotmail.com
Cc: cagney@gnu.org, gdb@sources.redhat.com
Subject: Re: hardware support for gdb?
Date: Tue, 17 Feb 2004 15:12:00 -0000	[thread overview]
Message-ID: <20040217151233.3B86B990D5@baradas.org> (raw)
In-Reply-To: <LAW11-OE16LPEhGD1Xy00036928@hotmail.com> (mohanlaljangir@hotmail.com)


>What I understood from this paragraph is that, if a target processor provide
>"trace bit" kind of functionality, gdb developer's life is easier otherwise
>he has to do some more work(disassembling of instruction). Am I right? Could
>you please explain a little about "trace bit" or similar functionality? Is
>it the breakpoint instruction, you mentioned about?

For more info on a 'trace' bit type architecture, look up any 68000 or
ColdFire processor manual.  In a nutshell, in an exception, if you patch the
status register value to or in the trace bit, then when the return
from exception is taken, the processor will execute *one* instruction
and then take an exception.  This allows you to step the processor one
instruction at a time without affecting its execution.

If the processor does not have this capability, then gdb inserts an
illegal instruction following the instruction it wants to step.  The
instruction needs to be decoded so if there is a possible branch(or
return or jump-to-subroutine), GDB can place another illegal
instruction at the target of the branch.   This can take quite a while
if GDB is comminication with the target via a slow serial line...

-- 
Peter Barada
peter@the-baradas.com


  parent reply	other threads:[~2004-02-17 15:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-13 10:47 mohanlal jangir
2004-02-13 14:55 ` Andrew Cagney
2004-02-16  4:06   ` mohanlal jangir
2004-02-16 23:33     ` Andrew Cagney
2004-02-17  4:49       ` mohanlal jangir
2004-02-17 13:56         ` Bill Gatliff
2004-02-17 20:04           ` Vijay Kamarshi
2004-02-18 14:25             ` Bill Gatliff
2004-02-18 16:51               ` Vijay Kamarshi
2004-02-17 15:12         ` Peter Barada [this message]
2004-02-17  5:12 Atul Talesara

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=20040217151233.3B86B990D5@baradas.org \
    --to=peter@the-baradas.com \
    --cc=cagney@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=mohanlaljangir@hotmail.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