public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Phil Muldoon <pmuldoon@redhat.com>
To: Mark Wielaard <mark@klomp.org>
Cc: frysk@sourceware.org
Subject: Re: Make CoredumpAction use Task.getRegisterBanks()
Date: Wed, 22 Aug 2007 21:33:00 -0000	[thread overview]
Message-ID: <46CCAB8B.5000202@redhat.com> (raw)
In-Reply-To: <1186043315.15044.46.camel@dijkstra.wildebeest.org>

Mark Wielaard wrote:
>> I think, going forward access to the raw memory  for each register bank, 
>> and also a getRegisterByName() function (which is the functionality we 
>> have now) is needed, and probably will be down the line.
>>     
>
> If we can match up the raw memory for each register bank between
> ptrace/proc and core files from Task that would be ideal. Then the Isa
> can just do the getRegisterByName() mapping. I'll watch your rewrite of
> the core file stuff and see if this makes things easier and clearer (I
> guess it will).
>
>   
Now that all the register stuff is in, lets open this up again. In a 
corefile there are 3 sets of registers written for x86:

General Purpose (GP) Registers
Floating Point Registers (FP)
eXtended Floating Point (XFP) Registers

The first, GP Registers are written as part of a Elf prStatus note. One 
per thread. Because these registers are part of "another" struct, and do 
not have a note all to themselves, they have to be read one by one, 
sorted, then written into the structure along with other prStatus data 
(tid, and so on).

Both FP and XFP both have their own note types and can be written 
wholesale as a bytebuffer to the corefile. No interpretation needed.

Whether raw register memory access belongs in the ISA, the Task is not 
really important from a corefile view, though I would like to see it 
consistent.

Regards

Phil

      parent reply	other threads:[~2007-08-22 21:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 16:53 Mark Wielaard
2007-07-30 17:44 ` Phil Muldoon
2007-07-31 12:03   ` Mark Wielaard
2007-08-01  0:27     ` Phil Muldoon
2007-08-02  8:28       ` Mark Wielaard
2007-08-03 14:18         ` Phil Muldoon
2007-08-06 10:03           ` Mark Wielaard
2007-08-22 21:33         ` Phil Muldoon [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=46CCAB8B.5000202@redhat.com \
    --to=pmuldoon@redhat.com \
    --cc=frysk@sourceware.org \
    --cc=mark@klomp.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).