Chromium Code Reviews| Index: runtime/vm/native_symbol_android.cc |
| diff --git a/runtime/vm/native_symbol_android.cc b/runtime/vm/native_symbol_android.cc |
| index 76ee86ffb5e64fbb7e48fb79ca486b9fd96025f5..f1bcbabd37b65617ae1817c3fe0f9959b81af8e0 100644 |
| --- a/runtime/vm/native_symbol_android.cc |
| +++ b/runtime/vm/native_symbol_android.cc |
| @@ -20,7 +20,7 @@ void NativeSymbolResolver::ShutdownOnce() { |
| } |
| -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) { |
| @@ -29,6 +29,7 @@ char* NativeSymbolResolver::LookupSymbolName(uintptr_t pc) { |
| if (info.dli_sname == NULL) { |
| return NULL; |
| } |
| + *start = reinterpret_cast<uintptr_t>(info.dli_saddr); |
|
Ivan Posva
2014/01/03 19:24:54
if (start != NULL) {
*start = ...
}
Cutch
2014/01/03 19:42:30
Done.
|
| return strdup(info.dli_sname); |
| } |