public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* New frysk.solib package
@ 2008-03-10 23:43 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2008-03-10 23:43 UTC (permalink / raw)
  To: frysk

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

FYI,

I'm factoring out the code that parses the link-map table from 
frysk.proc.dead into frysk.solib; once there it will become possible to 
construct a MemoryMap[] from the in-memory table of both live and dead 
processes.

Being able to construct the MemoryMap[] from the in-memory table of a 
live process will let us work-around a kernel bug where, during 
termination, /proc/$$/maps stops being available.

Andrew


[-- Attachment #2: [SCM]  master: Move SOLibMapBuilder to frysk.solib..eml --]
[-- Type: message/rfc822, Size: 6318 bytes --]

From: cagney@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Move SOLibMapBuilder to frysk.solib.
Date: 10 Mar 2008 23:34:06 -0000
Message-ID: <20080310233406.7413.qmail@sourceware.org>

The branch, master has been updated
       via  5b6dc0b96a065dc4273f08b4be598be4377e2837 (commit)
      from  dd417143986b806ef499396b016145a6d20905c7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 5b6dc0b96a065dc4273f08b4be598be4377e2837
Author: Andrew Cagney <cagney@redhat.com>
Date:   Mon Mar 10 19:32:08 2008 -0400

    Move SOLibMapBuilder to frysk.solib.
    
    frysk-core/frysk/proc/dead/ChangeLog
    2008-03-10  Andrew Cagney  <cagney@redhat.com>
    
    	* SOLibMapBuilder.java: Move to frysk.solib.
    	* LinuxExeFactory.java: Update.
    	* LinuxCoreInfo.java: Update.
    
    frysk-core/frysk/solib/ChangeLog
    2008-03-10  Andrew Cagney  <cagney@redhat.com>
    
    	* SOLibMapBuilder.java: Move to here from frysk.proc.dead.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/dead/ChangeLog               |    4 ++++
 frysk-core/frysk/proc/dead/LinuxCoreInfo.java      |    1 +
 frysk-core/frysk/proc/dead/LinuxExeFactory.java    |    1 +
 frysk-core/frysk/solib/ChangeLog                   |    2 ++
 .../{proc/dead => solib}/SOLibMapBuilder.java      |    5 ++---
 5 files changed, 10 insertions(+), 3 deletions(-)
 rename frysk-core/frysk/{proc/dead => solib}/SOLibMapBuilder.java (97%)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog
index 7a34a1f..0ef222d 100644
--- a/frysk-core/frysk/proc/dead/ChangeLog
+++ b/frysk-core/frysk/proc/dead/ChangeLog
@@ -1,5 +1,9 @@
 2008-03-10  Andrew Cagney  <cagney@redhat.com>
 
+	* SOLibMapBuilder.java: Move to frysk.solib.
+	* LinuxExeFactory.java: Update.
+	* LinuxCoreInfo.java: Update.
+
 	* LinuxCoreInfo.java: Refactor link-map code to
 	frysk.solib.LinkMapFactory and frysk.solib.DynamicSegment.
 	(addEnhancedMapData): Use LinkMapFactory.
diff --git a/frysk-core/frysk/proc/dead/LinuxCoreInfo.java b/frysk-core/frysk/proc/dead/LinuxCoreInfo.java
index 8d19246..0fd0ff1 100644
--- a/frysk-core/frysk/proc/dead/LinuxCoreInfo.java
+++ b/frysk-core/frysk/proc/dead/LinuxCoreInfo.java
@@ -39,6 +39,7 @@
 
 package frysk.proc.dead;
 
+import frysk.solib.SOLibMapBuilder;
 import java.util.List;
 import java.util.LinkedList;
 import java.io.File;
diff --git a/frysk-core/frysk/proc/dead/LinuxExeFactory.java b/frysk-core/frysk/proc/dead/LinuxExeFactory.java
index 738d448..255719d 100644
--- a/frysk-core/frysk/proc/dead/LinuxExeFactory.java
+++ b/frysk-core/frysk/proc/dead/LinuxExeFactory.java
@@ -47,6 +47,7 @@ import lib.dwfl.ElfCommand;
 import lib.dwfl.ElfEHeader;
 import frysk.proc.MemoryMap;
 import frysk.rsl.Log;
+import frysk.solib.SOLibMapBuilder;
 
 public class LinuxExeFactory {
     private static final Log fine = Log.fine(LinuxExeFactory.class);
diff --git a/frysk-core/frysk/solib/ChangeLog b/frysk-core/frysk/solib/ChangeLog
index 9f7c90e..a7bbfcf 100644
--- a/frysk-core/frysk/solib/ChangeLog
+++ b/frysk-core/frysk/solib/ChangeLog
@@ -1,5 +1,7 @@
 2008-03-10  Andrew Cagney  <cagney@redhat.com>
 
+	* SOLibMapBuilder.java: Move to here from frysk.proc.dead.
+
 	* LinkMap.java: Extract from frysk.proc.dead.LinuxCoreInfo.
 	* LinkMapFactory.java: Ditto.
 	* DynamicSegment.java: Ditto.
diff --git a/frysk-core/frysk/proc/dead/SOLibMapBuilder.java b/frysk-core/frysk/solib/SOLibMapBuilder.java
similarity index 97%
rename from frysk-core/frysk/proc/dead/SOLibMapBuilder.java
rename to frysk-core/frysk/solib/SOLibMapBuilder.java
index 9946988..ddf8a90 100644
--- a/frysk-core/frysk/proc/dead/SOLibMapBuilder.java
+++ b/frysk-core/frysk/solib/SOLibMapBuilder.java
@@ -37,7 +37,7 @@
 // version and license this file solely under the GPL without
 // exception.
 
-package frysk.proc.dead;
+package frysk.solib;
 
 import lib.dwfl.Elf;
 import lib.dwfl.ElfEHeader;
@@ -46,8 +46,7 @@ import lib.dwfl.ElfCommand;
 import java.io.File;
 
 /**
- * Build a list of maps from the contents of the file linkmap table at
- * address specified.
+ * Build a list of maps from the contents of the file specified file.
  */
 
 public abstract class SOLibMapBuilder {


hooks/post-receive
--
frysk system monitor/debugger

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-10 23:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-10 23:43 New frysk.solib package Andrew Cagney

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).