Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Orjan Friberg <orjan.friberg@axis.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sources.redhat.com
Subject: Re: Register fudging (CRISv32)
Date: Mon, 06 Sep 2004 12:00:00 -0000	[thread overview]
Message-ID: <413C512E.2000300@axis.com> (raw)
In-Reply-To: <20040903160329.GA18755@nevyn.them.org>

Daniel Jacobowitz wrote:
> 
> Precisely.  It sounds like the kernel can do a more accuarate job than
> gdbserver can easily.  For instance, if we single-step a task, and
> detach leaving it stopped, and attach another debugger - that debugger
> won't have the state to know whether the task was last stepped or
> trapped.

I sort of see what you're saying (though I'm not sure I understand your 
example: the register contents would be the same when attaching again, 
which is what the pseudo-PC is calculated from).  Anyways, I'm going to 
try and implement the creation of the pseudo-PC in the kernel - I'm not 
entirely happy with having it in the Gdbserver, and it also has it flaws 
(for example, sigaltstack.exp generating several FAILs if we receive the 
signal in a delay slot).

>>For example, in case of a PTRACE_CONT I set the single-step PC to 0 to 
>>disable single-stepping (similar to what the m68k does).
> 
> 
> Ah, I think I see.  I don't remember what your original question was
> though :-)

It was just one example of register fudging that seemed appropriate to 
do in the kernel.

-- 
Orjan Friberg
Axis Communications


      reply	other threads:[~2004-09-06 12:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-03 12:37 Orjan Friberg
2004-09-03 13:47 ` Daniel Jacobowitz
2004-09-03 14:31   ` Orjan Friberg
2004-09-03 16:03     ` Daniel Jacobowitz
2004-09-06 12:00       ` Orjan Friberg [this message]

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=413C512E.2000300@axis.com \
    --to=orjan.friberg@axis.com \
    --cc=drow@false.org \
    --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