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

Unified Diff: client/crashpad_info.cc

Issue 1052813002: win: make CrashpadInfo retrievable (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: more fixes Created 5 years, 8 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 | handler/mac/crash_report_exception_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/crashpad_info.cc
diff --git a/client/crashpad_info.cc b/client/crashpad_info.cc
index 739ed1c0b177504bac81e13525e41776dfbbd40c..873a318a3108ad225a5e95a221da16128154e89b 100644
--- a/client/crashpad_info.cc
+++ b/client/crashpad_info.cc
@@ -71,8 +71,10 @@ __attribute__((section(SEG_DATA ",__crashpad_info"),
#elif defined(OS_WIN)
-// TODO(scottmg): Tag in a way that makes it easy to locate on Windows.
-CrashpadInfo g_crashpad_info;
+// Put the struct in a section name CPADinfo where it can be found without the
+// symbol table.
+#pragma section("CPADinfo", read, write)
+__declspec(allocate("CPADinfo")) CrashpadInfo g_crashpad_info;
#endif
« no previous file with comments | « no previous file | handler/mac/crash_report_exception_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698