Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "A.Ramesh" <aramesh@acmet.com>
To: <gdb@sources.redhat.com>
Subject: Clarfication about 'Badvaddr' cp0 register in Tx39
Date: Mon, 22 Mar 2004 08:47:00 -0000	[thread overview]
Message-ID: <000001c40e42$212f60c0$7b00a8c0@acme> (raw)

Hi,

I am using the gdb6.0 port for tx39. I am seeking one clarification
related to Coprocessor registers. I have tried to produce 'Address Error
Exception' and verify the behavior of coprocessor registers. As per
specification, there is a 'Badvaddr' register, which takes the address
whose access had caused the Exception.

After getting this exception, I couldn't get any changes on 'bad'
register in the DDD's 'Register window'.

Later I found, while debugging, that there are two locations in gdb
which are maintaining cp0 registers.

	1) cpu->registers [REGISTERS]
	2) cpu->cp0_gpr   [CP0_GPR]

'Badvaddr' is implemented using 'cpu->cp0_gpr' in interp.c. 'cpu' is the
type of structure _sim_cpu. This structure has been declared in
sim-main.h

But, Gdb6.0 provides user interface for only those cp0 registers which
are maintained at 'cpu->registers'.

This means, if we change the value in [REGISTERS] array, that will
reflect in the DDD's 'Register window'.

So should I allocate the place for 'BadVaddr' in [REGISTERS], so that I
can see the behavior of any exception ? Or How do I link [CPO_GPR] with
user interface ?

Thanks & Regards,
A.Ramesh


             reply	other threads:[~2004-03-20  6:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-22  8:47 A.Ramesh [this message]
2004-03-24 14:42 A.Ramesh

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='000001c40e42$212f60c0$7b00a8c0@acme' \
    --to=aramesh@acmet.com \
    --cc=gdb@sources.redhat.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