public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Generate CNI headers using .class files in the .jar . Date: Fri, 11 Apr 2008 22:41:00 -0000 [thread overview] Message-ID: <20080411224137.15782.qmail@sourceware.org> (raw) The branch, master has been updated via 8799a9d03b5f22f6a685a40aef649f15a8296cce (commit) from edcbffeacef28be267f416367d0bc0c45f114848 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 8799a9d03b5f22f6a685a40aef649f15a8296cce Author: Andrew Cagney <cagney@toil.yyz.redhat.com> Date: Fri Apr 11 18:40:31 2008 -0400 Generate CNI headers using .class files in the .jar . frysk-common/ChangeLog 2008-04-11 Andrew Cagney <cagney@redhat.com> * Makefile.rules (.java.h): Get the .class files from the .jar. frysk-sys/lib/dwfl/ChangeLog 2008-04-11 Andrew Cagney <cagney@redhat.com> * cni/Dwfl.cxx: Explicitly include "inua/eio/Buffer.h". ----------------------------------------------------------------------- Summary of changes: frysk-common/ChangeLog | 2 ++ frysk-common/Makefile.rules | 20 ++++++-------------- frysk-sys/lib/dwfl/ChangeLog | 2 ++ frysk-sys/lib/dwfl/cni/Dwfl.cxx | 1 + 4 files changed, 11 insertions(+), 14 deletions(-) First 500 lines of diff: diff --git a/frysk-common/ChangeLog b/frysk-common/ChangeLog index 2b6ad40..32a719e 100644 --- a/frysk-common/ChangeLog +++ b/frysk-common/ChangeLog @@ -1,5 +1,7 @@ 2008-04-11 Andrew Cagney <cagney@redhat.com> + * Makefile.rules (.java.h): Get the .class files from the .jar. + * Makefile.gen.sh (files.base): Handle .S when breaking down file names. diff --git a/frysk-common/Makefile.rules b/frysk-common/Makefile.rules index dddfcd3..d5c147a 100644 --- a/frysk-common/Makefile.rules +++ b/frysk-common/Makefile.rules @@ -364,21 +364,14 @@ $(GEN_SOURCENAME)/JUnitTests.java: files-java.list # Generate one or more .h files, one per named class, and using CNI, # from the corresponding .java file. Anonymous classes are pruned. -# Need to store the intermediate .class files in a separate directory -# as otherwise GCJ will include a possibly out-dated .class file -# instead of the latest .java file leading to screwed up dependencies. +# This assumes that the directories .jar file has already been built. .java.h: b=`basename $*` ; \ d=`dirname $*` ; \ - tmpdir=$$b.tmp ; \ - rm -rf $$tmpdir ; \ - mkdir -p $$tmpdir ; \ - $(JAVAC) $(JAVACFLAGS) -d $$tmpdir '$<' || exit 1 ; \ - classes=`cd $$tmpdir; find $$d/$$b*.class \ - -name '*\$$[0-9]*' -prune \ - -o -name $$b.class -print \ - -o -name $$b'\$$*'.class -print \ + classes=`$(JAR) tf $(GEN_DIRNAME).jar | grep \ + -e $$d/$$b'\.class' \ + -e $$d/$$b'$$[^0-9]*\.class' \ | sed -e 's,.class$$,,'`; \ echo $$classes ; \ for class in $$classes ; do \ @@ -386,11 +379,10 @@ $(GEN_SOURCENAME)/JUnitTests.java: files-java.list outputfile=`basename $$class`.h; \ echo "$$class => $$outputdir/$$outputfile"; \ rm -f $$outputdir/$$outputfile ; \ - $(GCJH) -I $$tmpdir \ + $(GCJH) -I $(GEN_DIRNAME).jar \ -o $$outputdir/$$outputfile \ $(GCJHFLAGS) $$class ; \ - done ; \ - rm -rf $$tmpdir + done \f # Shared library rule (for moment assume that .a contains PIC code). SUFFIXES += .so diff --git a/frysk-sys/lib/dwfl/ChangeLog b/frysk-sys/lib/dwfl/ChangeLog index eb121bb..ce36660 100644 --- a/frysk-sys/lib/dwfl/ChangeLog +++ b/frysk-sys/lib/dwfl/ChangeLog @@ -1,5 +1,7 @@ 2008-04-11 Andrew Cagney <cagney@redhat.com> + * cni/Dwfl.cxx: Explicitly include "inua/eio/Buffer.h". + * jni/DwException.cxx: New. * jni/Dwarf.cxx: New. * jni/DwarfDie.cxx: New. diff --git a/frysk-sys/lib/dwfl/cni/Dwfl.cxx b/frysk-sys/lib/dwfl/cni/Dwfl.cxx index a2c3639..900b0a4 100644 --- a/frysk-sys/lib/dwfl/cni/Dwfl.cxx +++ b/frysk-sys/lib/dwfl/cni/Dwfl.cxx @@ -54,6 +54,7 @@ #include "lib/dwfl/DwarfDieFactory.h" #include "lib/dwfl/DwflModule.h" +#include "inua/eio/Buffer.h" #include "inua/eio/ByteBuffer.h" // Suck in elf_from_remote_memory from elfutils hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-04-11 22:41 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=20080411224137.15782.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).