7186778: MachO decoder implementation for MacOSX

Implementation of decoder for Apple's MacOSX. The implementation is based on the patch provided by Kevin Walls.

Reviewed-by: coleenp, kamg, kevinw
This commit is contained in:
Zhengyu Gu 2012-07-30 10:25:52 -04:00
parent b5b29845bd
commit 5515df5c31
8 changed files with 193 additions and 4 deletions

View file

@ -43,6 +43,10 @@ public:
bool demangle(const char* symbol, char *buf, int buflen);
bool decode(address addr, char *buf, int buflen, int* offset, const char* filepath = NULL);
bool decode(address addr, char *buf, int buflen, int* offset, const void *base) {
ShouldNotReachHere();
return false;
}
private:
ElfFile* get_elf_file(const char* filepath);