This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Elf frysk-imports bindings change
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Frysk Hackers <frysk at sourceware dot org>
- Date: Thu, 12 Oct 2006 12:12:18 -0500
- Subject: Elf frysk-imports bindings change
I've checked in a patch that extends the elf bindings in frysk-imports
to support writing back to the elf native data structures. This allows
us to construct a an elf file from Java. This is preparing the way for
writing core file from a frysk environment. I also added an elf error
lookup bindings.
Regards
Phil
2006-10-11 Phil Muldoon <pmuldoon@redhat.com>
* cni/Elf.cxx: (elf_begin): Check args to allow writing to
elf files.
(elf_get_last_error_msg): New.
(elf_get_last_error_no): New.
(elf_updatehdr): New.
(elf_init_core_header): New. Temporary.
(elf_updatephdr): New.
* Elf.java (Elf): Add a boolean constructor switch
for write/read.
(updateEHeader): New. Write Elf header back to native
structure.
(initializeCoreHeader): Temporary. Convienience function.
(updatePHeader): New. Write the program segment back to native
structure.
(getLastErrorMsg): New. Get the error message corresponding to
entry below.
(getLastErrorNo): New. Get the error number set if the last
elf function failed.