public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Make CoredumpAction use Task.getRegisterBanks()
@ 2007-07-30 16:53 Mark Wielaard
  2007-07-30 17:44 ` Phil Muldoon
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Wielaard @ 2007-07-30 16:53 UTC (permalink / raw)
  To: frysk; +Cc: Phil Muldoon

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-22 21:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-30 16:53 Make CoredumpAction use Task.getRegisterBanks() 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 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).