Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: runtime/vm/native_symbol_win.cc

Issue 2770863002: Fix Windows native code profiling. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_symbol_win.cc
diff --git a/runtime/vm/native_symbol_win.cc b/runtime/vm/native_symbol_win.cc
index fa57d56cd733a5461e0d450019e569a6f1ae5683..78cbe8f370e477f8712a2082c6e02a2791101753 100644
--- a/runtime/vm/native_symbol_win.cc
+++ b/runtime/vm/native_symbol_win.cc
@@ -62,10 +62,12 @@ char* NativeSymbolResolver::LookupSymbolName(uintptr_t pc, uintptr_t* start) {
PSYMBOL_INFO pSymbol = reinterpret_cast<PSYMBOL_INFO>(&buffer[0]);
pSymbol->SizeOfStruct = kSymbolInfoSize;
pSymbol->MaxNameLen = kMaxNameLength;
- BOOL r = SymFromAddr(hProcess, address, NULL, pSymbol);
+ DWORD64 displacement;
+ BOOL r = SymFromAddr(hProcess, address, &displacement, pSymbol);
if (r == FALSE) {
return NULL;
}
+ *start = pc - displacement;
return strdup(pSymbol->Name);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698