ReactOS 0.4.16-dev-41-ge8c7597
|
#include <stdio.h>
#include <assert.h>
#include <stdarg.h>
#include <errno.h>
#include "ntstatus.h"
#include "dbghelp_private.h"
#include "image_private.h"
#include "winternl.h"
#include "winioctl.h"
#include "ddk/mountmgr.h"
#include "wine/debug.h"
#include "wine/heap.h"
Go to the source code of this file.
Classes | |
struct | dyld_image_info32 |
struct | dyld_all_image_infos32 |
struct | dyld_image_info64 |
struct | dyld_all_image_infos64 |
union | wine_image_info |
union | wine_all_image_infos |
struct | macho_header |
struct | macho_segment_command |
struct | macho_segment_command32 |
struct | macho_symtab_command |
struct | macho_module_info |
struct | section_info |
struct | macho_info |
struct | symtab_elt |
struct | macho_debug_info |
struct | macho_load_params |
struct | macho_sync |
struct | macho_load |
Macros | |
#define | WIN32_NO_STATUS |
#define | WINE_MOUNTMGR_EXTENSIONS |
#define | swap_ulong_be_to_host(n) (RtlUlongByteSwap(n)) |
#define | MACHO_DYLD_IN_SHARED_CACHE 0x80000000 |
#define | MACHO_FAT_MAGIC 0xcafebabe |
#define | MACHO_MH_MAGIC_32 0xfeedface |
#define | MACHO_MH_MAGIC_64 0xfeedfacf |
#define | MACHO_CPU_TYPE_X86 0x00000007 |
#define | MACHO_CPU_TYPE_X86_64 0x01000007 |
#define | MACHO_MH_EXECUTE 0x2 |
#define | MACHO_MH_DYLIB 0x6 |
#define | MACHO_MH_DYLINKER 0x7 |
#define | MACHO_MH_BUNDLE 0x8 |
#define | MACHO_MH_DSYM 0xa |
#define | MACHO_LC_SEGMENT 0x01 |
#define | MACHO_LC_SYMTAB 0x02 |
#define | MACHO_LC_SEGMENT_64 0x19 |
#define | MACHO_LC_UUID 0x1b |
#define | MACHO_SECTION_TYPE 0x000000ff |
#define | MACHO_S_ATTR_PURE_INSTRUCTIONS 0x80000000 |
#define | MACHO_S_ATTR_SOME_INSTRUCTIONS 0x00000400 |
#define | UUID_STRING_LEN 37 /* 16 bytes at 2 hex digits apiece, 4 dashes, and the null terminator */ |
#define | MACHO_INFO_MODULE 0x0001 |
#define | MACHO_INFO_NAME 0x0002 |
Variables | |
static const struct image_file_map_ops | macho_file_map_ops |
static const WCHAR | dsym_subpath [] |
static const struct loader_ops | macho_loader_ops |
#define MACHO_CPU_TYPE_X86 0x00000007 |
Definition at line 154 of file macho_module.c.
#define MACHO_CPU_TYPE_X86_64 0x01000007 |
Definition at line 155 of file macho_module.c.
#define MACHO_DYLD_IN_SHARED_CACHE 0x80000000 |
Definition at line 148 of file macho_module.c.
#define MACHO_FAT_MAGIC 0xcafebabe |
Definition at line 150 of file macho_module.c.
#define MACHO_INFO_MODULE 0x0001 |
Definition at line 189 of file macho_module.c.
#define MACHO_INFO_NAME 0x0002 |
Definition at line 190 of file macho_module.c.
#define MACHO_LC_SEGMENT 0x01 |
Definition at line 163 of file macho_module.c.
#define MACHO_LC_SEGMENT_64 0x19 |
Definition at line 165 of file macho_module.c.
#define MACHO_LC_SYMTAB 0x02 |
Definition at line 164 of file macho_module.c.
#define MACHO_LC_UUID 0x1b |
Definition at line 166 of file macho_module.c.
#define MACHO_MH_BUNDLE 0x8 |
Definition at line 160 of file macho_module.c.
#define MACHO_MH_DSYM 0xa |
Definition at line 161 of file macho_module.c.
#define MACHO_MH_DYLIB 0x6 |
Definition at line 158 of file macho_module.c.
#define MACHO_MH_DYLINKER 0x7 |
Definition at line 159 of file macho_module.c.
#define MACHO_MH_EXECUTE 0x2 |
Definition at line 157 of file macho_module.c.
#define MACHO_MH_MAGIC_32 0xfeedface |
Definition at line 151 of file macho_module.c.
#define MACHO_MH_MAGIC_64 0xfeedfacf |
Definition at line 152 of file macho_module.c.
#define MACHO_S_ATTR_PURE_INSTRUCTIONS 0x80000000 |
Definition at line 169 of file macho_module.c.
#define MACHO_S_ATTR_SOME_INSTRUCTIONS 0x00000400 |
Definition at line 170 of file macho_module.c.
#define MACHO_SECTION_TYPE 0x000000ff |
Definition at line 168 of file macho_module.c.
#define swap_ulong_be_to_host | ( | n | ) | (RtlUlongByteSwap(n)) |
Definition at line 135 of file macho_module.c.
Definition at line 172 of file macho_module.c.
#define WIN32_NO_STATUS |
Definition at line 30 of file macho_module.c.
#define WINE_MOUNTMGR_EXTENSIONS |
Definition at line 36 of file macho_module.c.
Definition at line 1288 of file macho_module.c.
Referenced by macho_load_debug_info().
|
static |
Definition at line 712 of file macho_module.c.
Referenced by macho_map_file().
Definition at line 201 of file macho_module.c.
Referenced by macho_map_file(), and try_dsym().
Definition at line 1337 of file macho_module.c.
Referenced by macho_fetch_file_info(), and macho_load_file().
|
static |
Definition at line 217 of file macho_module.c.
Referenced by macho_map_range(), macho_map_ranges(), macho_unmap_range(), and macho_unmap_ranges().
|
static |
Definition at line 588 of file macho_module.c.
Referenced by macho_map_file().
|
static |
Definition at line 551 of file macho_module.c.
Referenced by macho_load_debug_info(), and macho_map_file().
|
static |
Definition at line 1736 of file macho_module.c.
|
static |
Definition at line 1601 of file macho_module.c.
Referenced by macho_enum_modules(), macho_load_module(), and macho_synchronize_module_list().
Definition at line 1678 of file macho_module.c.
Referenced by macho_synchronize_module_list().
|
static |
Definition at line 1424 of file macho_module.c.
|
static |
Definition at line 432 of file macho_module.c.
|
static |
Definition at line 395 of file macho_module.c.
Referenced by macho_find_section().
|
static |
Definition at line 1035 of file macho_module.c.
Referenced by macho_load_debug_info().
DWORD_PTR macho_get_map_rva | ( | const struct image_section_map * | ism | ) |
unsigned macho_get_map_size | ( | const struct image_section_map * | ism | ) |
Definition at line 1763 of file macho_module.c.
Referenced by macho_load_module().
Definition at line 1363 of file macho_module.c.
Referenced by macho_load_file().
|
static |
Definition at line 1460 of file macho_module.c.
Referenced by macho_load_file_cb(), macho_search_and_load_file(), and macho_search_loader().
Definition at line 1537 of file macho_module.c.
Referenced by macho_search_and_load_file().
|
static |
Definition at line 1789 of file macho_module.c.
|
static |
Definition at line 620 of file macho_module.c.
Referenced by macho_map_file().
|
static |
Definition at line 738 of file macho_module.c.
Referenced by macho_fetch_file_info(), macho_load_file(), and try_dsym().
|
static |
Definition at line 503 of file macho_module.c.
Referenced by macho_enum_load_commands().
|
static |
Definition at line 238 of file macho_module.c.
Referenced by macho_map_load_commands(), macho_map_ranges(), and macho_map_section().
|
static |
Definition at line 306 of file macho_module.c.
Referenced by macho_parse_symtab().
const char * macho_map_section | ( | struct image_section_map * | ism | ) |
Definition at line 440 of file macho_module.c.
|
static |
|
static |
|
static |
Definition at line 999 of file macho_module.c.
Referenced by macho_load_debug_info().
Definition at line 1911 of file macho_module.c.
Referenced by check_live_target().
|
static |
Definition at line 1548 of file macho_module.c.
Referenced by macho_enum_sync_cb(), macho_load_cb(), macho_load_module(), and macho_search_loader().
|
static |
Definition at line 1828 of file macho_module.c.
Referenced by macho_read_wine_loader_dbg_info().
Definition at line 927 of file macho_module.c.
Referenced by macho_stabs_def_cb().
|
static |
Definition at line 968 of file macho_module.c.
Referenced by macho_parse_symtab().
Definition at line 1695 of file macho_module.c.
|
static |
Definition at line 888 of file macho_module.c.
Referenced by macho_fetch_file_info(), macho_load_file(), macho_map_file(), macho_module_remove(), and try_dsym().
Definition at line 520 of file macho_module.c.
Referenced by macho_unmap_file().
|
static |
Definition at line 274 of file macho_module.c.
Referenced by macho_map_ranges(), macho_unmap_load_commands(), macho_unmap_ranges(), and macho_unmap_section().
|
static |
Definition at line 358 of file macho_module.c.
Referenced by macho_parse_symtab().
void macho_unmap_section | ( | struct image_section_map * | ism | ) |
Definition at line 455 of file macho_module.c.
Referenced by macho_unmap_file().
Definition at line 1239 of file macho_module.c.
Referenced by find_and_map_dsym().
|
inlinestatic |
Definition at line 721 of file macho_module.c.
Referenced by macho_load_file(), and macho_map_file().
|
static |
Definition at line 1208 of file macho_module.c.
Referenced by find_and_map_dsym().
WINE_DEFAULT_DEBUG_CHANNEL | ( | dbghelp_macho | ) |
Definition at line 1235 of file macho_module.c.
Referenced by find_and_map_dsym(), and query_dsym().
|
static |
Definition at line 488 of file macho_module.c.
Referenced by macho_map_file().
|
static |
Definition at line 1897 of file macho_module.c.
Referenced by macho_read_wine_loader_dbg_info().