LLDB mainline
Public Types | Static Public Member Functions | List of all members
lldb_private::ZipFileResolver Class Reference

In Android API level 23 and above, bionic dynamic linker is able to load .so file directly from APK or .zip file. More...

#include <ZipFileResolver.h>

Public Types

enum  FileKind { eFileKindInvalid = 0 , eFileKindNormal , eFileKindZip }
 

Static Public Member Functions

static bool ResolveSharedLibraryPath (const FileSpec &file_spec, FileKind &file_kind, std::string &file_path, lldb::offset_t &so_file_offset, lldb::offset_t &so_file_size)
 

Detailed Description

In Android API level 23 and above, bionic dynamic linker is able to load .so file directly from APK or .zip file.

This is a utility class to resolve the file spec in order to get the zip path and the .so file offset and size if the file spec contains "zip_path!/so_path". https://android.googlesource.com/platform/bionic/+/master/ android-changes-for-ndk-developers.md# opening-shared-libraries-directly-from-an-apk

Definition at line 23 of file ZipFileResolver.h.

Member Enumeration Documentation

◆ FileKind

Enumerator
eFileKindInvalid 
eFileKindNormal 
eFileKindZip 

Definition at line 25 of file ZipFileResolver.h.

Member Function Documentation

◆ ResolveSharedLibraryPath()

bool ZipFileResolver::ResolveSharedLibraryPath ( const FileSpec file_spec,
FileKind file_kind,
std::string &  file_path,
lldb::offset_t so_file_offset,
lldb::offset_t so_file_size 
)
static

The documentation for this class was generated from the following files: