fcore <pid> Would like, all the other variants, extract a core file from a running process.
just like gcore does, right? That is interesting.
*** Bug 3075 has been marked as a duplicate of this bug. ***
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. 2006-10-12 Phil Muldoon <pmuldoon@redhat.com> * FCore.java: Added. Initial, experimental and incomplete utility to dump process core in frysk.
2006-10-15 Phil Muldoon <pmuldoon@redhat.com> * frysk/util/FCore.java (write_elf_file): Rewritten with these changes: - Build elf header manually with full complement of data. - Build string table section/section header and update to disk. - (Still) Ugly arch test hack. * frysk/util/FCore.java (FCore.MapsCounter): Renamed. * frysk/util/FCore.java (FCore.CoreMapsBuilder): Renamed. (buildMap):Rewritten with these changes: - build section headers - define section headers in concert with program headers. - build section from header, create contextual Elf_Data class, and byte copy maps data. 2006-10-15 Phil Muldoon <pmuldoon@redhat.com> * Elf.java (getElfVersion): New function. (initializeCoreHeader): Remove. Deprecated. * ElfData.java (setBuffer): New function. Set elf buffer. (setType): New. (setSize): New. (setOffset): New. * ElfEHeader.java: Added Data, Class and Type constants. * ElfPHeader.java : Added Type constants. * ElfSection (update): New Function. Update class back to native elf header. * ElfSectionHeader.java: Changed constructor access to public. * ElfSectionHeaderTypes.java : New. * cni/Elf.cxx (elf_init_core_header): Removed. Deprecated. * cni/ElfData.cxx (elf_data_set_buff): New function. (elf_data_set_type): Ditto. (elf_data_set_version): Ditto. (elf_data_set_size): Ditto. (elf_data_set_off): Ditto. (elf_data_set_align): Ditto. * cni/ElfSection.cxx: (ElfSection): Check if ehdr->e_shstrndx exists before attempting to calculate name from string table. (elf_updateshdr): New.
Leave in new/assigned state until the command is mostly there, after that bug can be SUSPENDED and additional problems hung off of this bug.