This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
libdw wrappers and reflection
- From: Tim Moore <timoore at redhat dot com>
- To: frysk <frysk at sourceware dot org>
- Date: Wed, 28 Mar 2007 15:32:56 +0200
- Subject: libdw wrappers and reflection
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I´m writing wrapper Java classes around the libdw Dwarf_Die, along with
a DieVisitor, to make traversing and processing dies less painful in
Java. In order to avoid enumerating all the class names in the new
DwarfDieFactory class, I'm using reflection to construct the class names
based on the Dwarf tag name. I ran into an interesting problem: because
we statically link in all our classes, I couldn't find these classes
through the reflection API because they weren't explicitly mentioned
anywhere. So now I have to list them all....
Anyway, is it worth talking about why we link everything statically?
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGCm6IeDhWHdXrDRURAqXzAJ9ZtBWD2IAIRONKd0KR0Gfj6LhFpACgxPi1
jQt5gTrzXZTqahWxbzazpKE=
=IN4p
-----END PGP SIGNATURE-----