This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]