public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Elf frysk-imports bindings change
@ 2006-10-12 17:12 Phil Muldoon
  0 siblings, 0 replies; only message in thread
From: Phil Muldoon @ 2006-10-12 17:12 UTC (permalink / raw)
  To: Frysk Hackers

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-12 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-12 17:12 Elf frysk-imports bindings change Phil Muldoon

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).