public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Load libaudit.so. Date: Wed, 18 Jun 2008 13:21:00 -0000 [thread overview] Message-ID: <20080618132136.27118.qmail@sourceware.org> (raw) The branch, master has been updated via aa7ad2daa6bd5e33ba0b5dce6dceb3df009b6f15 (commit) via 95377e3ed2f0f8dc2ea1969e382d464485d99a26 (commit) from a9edfdc3af7ed0d14c1dd2108817bb578df5a2bb (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit aa7ad2daa6bd5e33ba0b5dce6dceb3df009b6f15 Author: Andrew Cagney <cagney@redhat.com> Date: Tue Jun 17 00:22:54 2008 -0400 Load libaudit.so. frysk-common/ChangeLog 2008-06-17 Andrew Cagney <cagney@redhat.com> * Makefile.rules (Runner): Load libaudit.so. commit 95377e3ed2f0f8dc2ea1969e382d464485d99a26 Author: Andrew Cagney <cagney@redhat.com> Date: Tue Jun 17 00:13:05 2008 -0400 Implement missing jni/get_cu_dies. frysk-sys/lib/dwfl/ChangeLog 2008-06-16 Andrew Cagney <cagney@redhat.com> * DwflModule.java (get_cu_dies): Add pointer parameter. * cni/DwflModule.cxx (DwflModule::get_cu_dies): Update. * jni/DwflModule.cxx (DwflModule::get_cu_dies): Implement, missing. ----------------------------------------------------------------------- Summary of changes: frysk-common/ChangeLog | 4 +++ frysk-common/Makefile.rules | 3 +- frysk-sys/lib/dwfl/ChangeLog | 6 ++++ frysk-sys/lib/dwfl/DwflModule.java | 9 ++++-- frysk-sys/lib/dwfl/cni/DwflModule.cxx | 45 ++++++++++++-------------------- frysk-sys/lib/dwfl/jni/DwflModule.cxx | 18 +++++++++++++ 6 files changed, 53 insertions(+), 32 deletions(-) First 500 lines of diff: diff --git a/frysk-common/ChangeLog b/frysk-common/ChangeLog index 8d1b606..da3952f 100644 --- a/frysk-common/ChangeLog +++ b/frysk-common/ChangeLog @@ -1,3 +1,7 @@ +2008-06-17 Andrew Cagney <cagney@redhat.com> + + * Makefile.rules (Runner): Load libaudit.so. + 2008-06-09 Andrew Cagney <cagney@redhat.com> * Makefile.rules (Runner): (Really) Let JAVA be overwritten by an diff --git a/frysk-common/Makefile.rules b/frysk-common/Makefile.rules index 7f30cd3..321f510 100644 --- a/frysk-common/Makefile.rules +++ b/frysk-common/Makefile.rules @@ -407,7 +407,8 @@ Runner: echo "\$${libunwind}-ppc32/src/.libs/libunwind-ppc32.so\\ \\" >> $@.tmp echo "\$${libunwind}-ppc64/src/.libs/libunwind-ppc64.so\\ \\" >> $@.tmp echo "\$${libunwind}-x86_64/src/.libs/libunwind-x86_64.so\\ \\" >> $@.tmp - echo "libstdc++.so.6" >> $@.tmp + echo "libstdc++.so.6\\ \\" >> $@.tmp + echo "libaudit.so" >> $@.tmp echo "" >> $@.tmp echo "# hack to hopefully find the right libstdc++.so" >> $@.tmp echo "export LD_LIBRARY_PATH=$(frysk_sys)\\" >> $@.tmp diff --git a/frysk-sys/lib/dwfl/ChangeLog b/frysk-sys/lib/dwfl/ChangeLog index c44bebe..6e7a384 100644 --- a/frysk-sys/lib/dwfl/ChangeLog +++ b/frysk-sys/lib/dwfl/ChangeLog @@ -1,3 +1,9 @@ +2008-06-16 Andrew Cagney <cagney@redhat.com> + + * DwflModule.java (get_cu_dies): Add pointer parameter. + * cni/DwflModule.cxx (DwflModule::get_cu_dies): Update. + * jni/DwflModule.cxx (DwflModule::get_cu_dies): Implement, missing. + 2008-06-15 Andrew Cagney <cagney@redhat.com> * DwarfDie.java (get_scopevar): Return an int. diff --git a/frysk-sys/lib/dwfl/DwflModule.java b/frysk-sys/lib/dwfl/DwflModule.java index b262ec4..01b728c 100644 --- a/frysk-sys/lib/dwfl/DwflModule.java +++ b/frysk-sys/lib/dwfl/DwflModule.java @@ -40,6 +40,7 @@ package lib.dwfl; import java.util.LinkedList; +import java.util.List; /** * A wrapper object around the libdwfl Dwfl_Module structure. @@ -142,10 +143,12 @@ public class DwflModule { */ public native String getDebuginfo(); - public LinkedList getCuDies(){ - return get_cu_dies(); + public List getCuDies(){ + List list = new LinkedList(); + get_cu_dies(pointer, list); + return list; } - private native LinkedList get_cu_dies(); + private static native void get_cu_dies(long pointer, List list); public DwflDie getCompilationUnit(long addr) { // Find the die, grab the bias as it flies by. diff --git a/frysk-sys/lib/dwfl/cni/DwflModule.cxx b/frysk-sys/lib/dwfl/cni/DwflModule.cxx index ad85344..7f252bc 100644 --- a/frysk-sys/lib/dwfl/cni/DwflModule.cxx +++ b/frysk-sys/lib/dwfl/cni/DwflModule.cxx @@ -45,6 +45,9 @@ #include <gnu/gcj/RawData.h> +#include <java/util/List.h> + + #include "lib/dwfl/DwflModule.h" #include "lib/dwfl/DwarfDie.h" #include "lib/dwfl/DwflLine.h" @@ -443,35 +446,21 @@ lib::dwfl::DwflModule::offdie(jlong die, jlong offset){ return dwarfDie; } -java::util::LinkedList* -lib::dwfl::DwflModule::get_cu_dies() -{ - - java::util::LinkedList* list = new java::util::LinkedList(); - - Dwarf_Die* cu; - Dwarf_Die lastcu; - Dwarf_Addr bias; - - cu = dwfl_module_nextcu((::Dwfl_Module*)this->pointer, NULL, &bias); - - fflush(stdout); - while ( cu != NULL){ - +void +lib::dwfl::DwflModule::get_cu_dies(jlong pointer, + java::util::List *list) { + Dwarf_Die* cu; + Dwarf_Addr bias; + cu = dwfl_module_nextcu(DWFL_MODULE_POINTER, NULL, &bias); + while (cu != NULL) { Dwarf_Die *die = (Dwarf_Die*)JvMalloc(sizeof(Dwarf_Die)); - - memcpy(die, cu, sizeof(*die)); - lib::dwfl::DwarfDie* cuDie = lib::dwfl::DwarfDieFactory::getFactory()->makeDie((jlong)die, NULL); - cuDie->setManageDie(true); - - list->add(cuDie); - - memcpy(&lastcu, cu, sizeof(*cu)); - cu = dwfl_module_nextcu((::Dwfl_Module*)this->pointer, &lastcu, &bias); - - } - - return list; + memcpy(die, cu, sizeof(*die)); + lib::dwfl::DwarfDie* cuDie + = lib::dwfl::DwarfDieFactory::getFactory()->makeDie((jlong)die, NULL); + cuDie->setManageDie(true); + list->add(cuDie); + cu = dwfl_module_nextcu(DWFL_MODULE_POINTER, cu, &bias); + } } jlong diff --git a/frysk-sys/lib/dwfl/jni/DwflModule.cxx b/frysk-sys/lib/dwfl/jni/DwflModule.cxx index 09092ce..ca42e43 100644 --- a/frysk-sys/lib/dwfl/jni/DwflModule.cxx +++ b/frysk-sys/lib/dwfl/jni/DwflModule.cxx @@ -396,6 +396,24 @@ lib::dwfl::DwflModule::offdie(jnixx::env env, jlong die, jlong offset) { return dwarfDie; } +void +lib::dwfl::DwflModule::get_cu_dies(::jnixx::env env, jlong pointer, + java::util::List list) { + Dwarf_Die* cu; + Dwarf_Addr bias; + cu = dwfl_module_nextcu(DWFL_MODULE_POINTER, NULL, &bias); + + while (cu != NULL) { + Dwarf_Die *die = (Dwarf_Die*)::malloc(sizeof(Dwarf_Die)); + memcpy(die, cu, sizeof(*die)); + lib::dwfl::DwarfDie cuDie + = lib::dwfl::DwarfDieFactory::getFactory(env).makeDie(env, (jlong)die, lib::dwfl::DwflModule(env, NULL)); + cuDie.setManageDie(env, true); + list.add(env, cuDie); + cu = dwfl_module_nextcu(DWFL_MODULE_POINTER, cu, &bias); + } +} + jlong lib::dwfl::DwflModule::dwflModuleAddrdie(jnixx::env env, jlong pointer, jlong addr) { hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-06-18 13:21 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=20080618132136.27118.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: linkBe 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).