* libdw wrappers and reflection
@ 2007-03-28 13:33 Tim Moore
2007-03-29 16:11 ` Stan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Tim Moore @ 2007-03-28 13:33 UTC (permalink / raw)
To: frysk
-----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-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libdw wrappers and reflection
2007-03-28 13:33 libdw wrappers and reflection Tim Moore
@ 2007-03-29 16:11 ` Stan Cox
2007-03-29 16:21 ` Tim Moore
0 siblings, 1 reply; 3+ messages in thread
From: Stan Cox @ 2007-03-29 16:11 UTC (permalink / raw)
To: Tim Moore; +Cc: frysk
On Wed, 2007-03-28 at 15:32 +0200, Tim Moore wrote:
> I´m writing wrapper Java classes around the libdw Dwarf_Die
Could you post a summary of what has changed?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libdw wrappers and reflection
2007-03-29 16:11 ` Stan Cox
@ 2007-03-29 16:21 ` Tim Moore
0 siblings, 0 replies; 3+ messages in thread
From: Tim Moore @ 2007-03-29 16:21 UTC (permalink / raw)
To: Stan Cox; +Cc: frysk
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stan Cox wrote:
> On Wed, 2007-03-28 at 15:32 +0200, Tim Moore wrote:
>> I´m writing wrapper Java classes around the libdw Dwarf_Die
>
> Could you post a summary of what has changed?
>
>
Not much has changed yet, except you shouldn't (can't) call new DwarfDie
anymore; you should call the factory method makeDie on DwarfDieFactory.
There's also the DieVisitor class for type dispatching and stuff.
The classes for the Dies just encode the types of the tag of the
Dwarf_Die, but I'm planning on adding methods to them as appropriate.
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGC+ddeDhWHdXrDRURArfYAKChQYMdC/SmD6IsbtmAbJcqgynYMgCg4g2O
fWHu6pe58F5WnrzIqf2E+w0=
=YX6g
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-29 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-28 13:33 libdw wrappers and reflection Tim Moore
2007-03-29 16:11 ` Stan Cox
2007-03-29 16:21 ` Tim Moore
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).