Skip to content
  • Greg Clayton's avatar
    <rdar://problem/10560053> · c9660546
    Greg Clayton authored
    Fixed "target modules list" (aliased to "image list") to output more information
    by default. Modified the "target modules list" to have a few new options:
    
    "--header" or "-h" => show the image header address
    "--offset" or "-o" => show the image header address offset from the address in the file (the slide applied to the shared library)
    
    Removed the "--symfile-basename" or "-S" option, and repurposed it to 
    "--symfile-unique" "-S" which will show the symbol file if it differs from
    the executable file.
    
    ObjectFile's can now be loaded from memory for cases where we don't have the
    files cached locally in an SDK or net mounted root. ObjectFileMachO can now
    read mach files from memory.
    
    Moved the section data reading code into the ObjectFile so that the object
    file can get the section data from Process memory if the file is only in
    memory.
    
    lldb_private::Module can now load its object file in a target with a rigid 
    slide (very common operation for most dynamic linkers) by using:
    
    bool 
    Module::SetLoadAddress (Target &target, lldb::addr_t offset, bool &changed)
    
    lldb::SBModule() now has a new constructor in the public interface:
    
    SBModule::SBModule (lldb::SBProcess &process, lldb::addr_t header_addr);
    
    This will find an appropriate ObjectFile plug-in to load an image from memory
    where the object file header is at "header_addr".
    
    llvm-svn: 149804
    c9660546
Loading