public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: cagney@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Delete unused Dwfl.getCompilationUnitModule.
Date: Wed, 04 Jun 2008 20:09:00 -0000	[thread overview]
Message-ID: <20080604200949.14623.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  f26063a531c6009e850bbaf369e04580711f583b (commit)
      from  ee64fd4e4ff967bddfa2ffc7090ebe4b3d9e1e1f (commit)

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

- Log -----------------------------------------------------------------
commit f26063a531c6009e850bbaf369e04580711f583b
Author: Andrew Cagney <cagney@redhat.com>
Date:   Wed Jun 4 16:08:34 2008 -0400

    Delete unused Dwfl.getCompilationUnitModule.
    
    frysk-sys/lib/dwfl/ChangeLog
    2008-06-04  Andrew Cagney  <cagney@redhat.com>
    
    	* Dwfl.java (getCompilationUnitModule(DwarfDie)): Delete.
    	* TestDwfl.java: Update.
    	* jni/Dwfl.cxx: Update.
    	* cni/Dwfl.cxx: Update.

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

Summary of changes:
 frysk-sys/lib/dwfl/ChangeLog     |    5 +++++
 frysk-sys/lib/dwfl/Dwfl.java     |    7 -------
 frysk-sys/lib/dwfl/TestDwfl.java |   15 ---------------
 frysk-sys/lib/dwfl/cni/Dwfl.cxx  |    8 --------
 frysk-sys/lib/dwfl/jni/Dwfl.cxx  |    6 ------
 5 files changed, 5 insertions(+), 36 deletions(-)

First 500 lines of diff:
diff --git a/frysk-sys/lib/dwfl/ChangeLog b/frysk-sys/lib/dwfl/ChangeLog
index e7bd08d..87830a7 100644
--- a/frysk-sys/lib/dwfl/ChangeLog
+++ b/frysk-sys/lib/dwfl/ChangeLog
@@ -1,5 +1,10 @@
 2008-06-04  Andrew Cagney  <cagney@redhat.com>
 
+	* Dwfl.java (getCompilationUnitModule(DwarfDie)): Delete.
+	* TestDwfl.java: Update.
+	* jni/Dwfl.cxx: Update.
+	* cni/Dwfl.cxx: Update.
+
 	* Dwfl.java (dwfl_addrmodule): Delete.
 	(reportModule): Try to re-use existing modules.
 	* TestDwfl.java (testModuleReuse()): New.
diff --git a/frysk-sys/lib/dwfl/Dwfl.java b/frysk-sys/lib/dwfl/Dwfl.java
index 1e8d52a..73cbd33 100644
--- a/frysk-sys/lib/dwfl/Dwfl.java
+++ b/frysk-sys/lib/dwfl/Dwfl.java
@@ -79,13 +79,6 @@ public class Dwfl {
     }
     private static native void dwflEnd(long pointer);
     private static native void callbacksEnd(long callbacks);
-
-    public DwflModule getCompliationUnitModule(DwarfDie cuDie) {
-	long key = dwfl_cumodule(cuDie.getPointer());
-	return (DwflModule) modules.get(new Long(key));
-    }
-    
-    private native long dwfl_cumodule(long cuDie);
     
     public DwflLine getSourceLine (long addr) {
 	long val = 0;
diff --git a/frysk-sys/lib/dwfl/TestDwfl.java b/frysk-sys/lib/dwfl/TestDwfl.java
index 04bf421..e8146b4 100644
--- a/frysk-sys/lib/dwfl/TestDwfl.java
+++ b/frysk-sys/lib/dwfl/TestDwfl.java
@@ -231,19 +231,4 @@ public class TestDwfl
       }
     assertTrue(foundAddress);
   }
-  
-  public void testGetCompliationUnitModule() 
-  {
-    Dwfl dwfl = DwflTestbed.createFromSelf();
-    assertNotNull(dwfl);
-    long addr = LocalMemory.getCodeAddr();
-
-    DwarfDie cuDie = dwfl.getCompilationUnit(addr).die;
-    assertNotNull(cuDie);
-    
-    DwflModule dwflModule = dwfl.getCompliationUnitModule(cuDie);
-
-    assertTrue("Found correct module", dwflModule.getName().contains("TestRunner"));
-  }
-
 }
diff --git a/frysk-sys/lib/dwfl/cni/Dwfl.cxx b/frysk-sys/lib/dwfl/cni/Dwfl.cxx
index 6fa85e6..a258287 100644
--- a/frysk-sys/lib/dwfl/cni/Dwfl.cxx
+++ b/frysk-sys/lib/dwfl/cni/Dwfl.cxx
@@ -221,11 +221,3 @@ lib::dwfl::Dwfl::dwfl_addrdie(jlong addr){
 
   return new lib::dwfl::DwflDieBias(dwdie, (jlong)bias);
 }
-
-jlong
-lib::dwfl::Dwfl::dwfl_cumodule(jlong cudie)
-{
-  Dwfl_Module* module = ::dwfl_cumodule((Dwarf_Die*)cudie);
-  return (jlong)module;
-}
-
diff --git a/frysk-sys/lib/dwfl/jni/Dwfl.cxx b/frysk-sys/lib/dwfl/jni/Dwfl.cxx
index 7d062b2..216b0c1 100644
--- a/frysk-sys/lib/dwfl/jni/Dwfl.cxx
+++ b/frysk-sys/lib/dwfl/jni/Dwfl.cxx
@@ -201,9 +201,3 @@ lib::dwfl::Dwfl::dwfl_addrdie(jnixx::env env, jlong addr){
   lib::dwfl::DwarfDie dwdie = GetFactory(env).makeDie(env, (jlong) die, module);
   return lib::dwfl::DwflDieBias::New(env, dwdie, (jlong)bias);
 }
-
-jlong
-lib::dwfl::Dwfl::dwfl_cumodule(jnixx::env env, jlong cudie) {
-  Dwfl_Module* module = ::dwfl_cumodule((Dwarf_Die*)cudie);
-  return (jlong)module;
-}


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


                 reply	other threads:[~2008-06-04 20:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080604200949.14623.qmail@sourceware.org \
    --to=cagney@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.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).