public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: frysk@sourceware.org
Cc: Phil Muldoon <pmuldoon@redhat.com>
Subject: Make CoredumpAction use Task.getRegisterBanks()
Date: Mon, 30 Jul 2007 16:53:00 -0000	[thread overview]
Message-ID: <1185814384.3674.36.camel@dijkstra.wildebeest.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

Hi,

Phil and me were discussing cleaning up some of the
Memory/RegisterBuffers between ptrace and core proc Tasks on irc and
noticed that CoredumpAction was accessing the RegisterBanks directly
through the Isa. To make splitting the issue of getting the
RegisterBanks (Task specific) and doing the Register name mapping to
bank number and offset (Isa specific) easier we wanted to make all code
go through Task.getRegisterBanks(). This patch does that for
CoredumpAction:

2007-07-30  Mark Wielaard  <mwielaard@redhat.com>

    * CoredumpAction.java (): Use Task.getRegisterBanks() not
    Isa.getRegisterBankBuffers().

Tested on x86 and x86_64 without regressions.

Cheers,

Mark

diff -u -r1.16 CoredumpAction.java
--- frysk-core/frysk/util/CoredumpAction.java   16 Jul 2007 22:11:35 -0000     1.16
+++ frysk-core/frysk/util/CoredumpAction.java   30 Jul 2007 16:40:07 -0000
@@ -235,11 +235,8 @@
   {
     // New PRSTATUS Note Entry.
     ElfPrFPRegSet fpRegSet = new ElfPrFPRegSet();
-    Isa register = null;
-
-    register = task.getIsa();
 
-    ByteBuffer registerMaps[] = register.getRegisterBankBuffers(task.getProc().getPid());
+    ByteBuffer registerMaps[] = task.getRegisterBanks();
     if (registerMaps[1].capacity() <= 0)
       abandonCoreDump(new RuntimeException("FP Register bank is <=0"));
     byte[] regBuffer = new byte[(int) registerMaps[1].capacity()];


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2007-07-30 16:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 16:53 Mark Wielaard [this message]
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

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=1185814384.3674.36.camel@dijkstra.wildebeest.org \
    --to=mark@klomp.org \
    --cc=frysk@sourceware.org \
    --cc=pmuldoon@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).