Index: dart/runtime/vm/native_symbol_macos.cc |
=================================================================== |
--- dart/runtime/vm/native_symbol_macos.cc (revision 31530) |
+++ dart/runtime/vm/native_symbol_macos.cc (working copy) |
@@ -21,7 +21,7 @@ |
} |
-char* NativeSymbolResolver::LookupSymbolName(uintptr_t pc) { |
+char* NativeSymbolResolver::LookupSymbolName(uintptr_t pc, uintptr_t* start) { |
Dl_info info; |
int r = dladdr(reinterpret_cast<void*>(pc), &info); |
if (r == 0) { |
@@ -30,6 +30,9 @@ |
if (info.dli_sname == NULL) { |
return NULL; |
} |
+ if (start != NULL) { |
+ *start = reinterpret_cast<uintptr_t>(info.dli_saddr); |
+ } |
int status; |
char* demangled = abi::__cxa_demangle(info.dli_sname, NULL, NULL, &status); |
if (status == 0) { |