Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc/rft] [3/4] Untangle register_addr - v2 - mips-linux
Date: Tue, 24 Apr 2007 21:53:00 -0000	[thread overview]
Message-ID: <20070424215221.GB5173@caradoc.them.org> (raw)
In-Reply-To: <200704231545.l3NFjWHm019084@d12av02.megacenter.de.ibm.com>

On Mon, Apr 23, 2007 at 05:45:32PM +0200, Ulrich Weigand wrote:
> Hello,
> 
> this is the updated mips-linux patch.  Main difference is moving
> mips_linux_cannot_fetch_register and mips_linux_cannot_store_register
> to mips-linux-tdep.c and installing them as gdbarch callbacks.
> 
> Tested by building --target=mips-linux and --host=mips-linux.

Well, no, I don't think this will do.  Sorry I didn't get to look at
this before you redid it.  The cannot_store_register callback refused
stores to badvaddr and cause.  If you're using a mips-linux native
debugger, or talking to gdbserver, that's fine.  But if you're using a
mips-linux debugger and talking to kgdb over a JTAG unit, it's less
fine.  You should be able to write to cause if your target_ops permits.

That's probably typical of user-readable supervisor mode registers.
I bet there are plenty more targets with this situation where GDB just
doesn't support the register in question.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-04-24 21:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 15:47 Ulrich Weigand
2007-04-24 21:53 ` Daniel Jacobowitz [this message]
2007-04-25  0:26   ` Ulrich Weigand
2007-04-25 19:45     ` Daniel Jacobowitz
2007-04-25 22:40       ` Ulrich Weigand

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=20070424215221.GB5173@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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