harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r647715 - /harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/win/stack_dump_os.cpp
Date Mon, 14 Apr 2008 09:42:53 GMT
Author: gshimansky
Date: Mon Apr 14 02:42:50 2008
New Revision: 647715

URL: http://svn.apache.org/viewvc?rev=647715&view=rev
Log:
Applied patch from HARMONY-5701
[drlvm][crashhandler] function names are mangled in stack traces on Windows


Modified:
    harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/win/stack_dump_os.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/win/stack_dump_os.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/win/stack_dump_os.cpp?rev=647715&r1=647714&r2=647715&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/win/stack_dump_os.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/win/stack_dump_os.cpp Mon Apr 14
02:42:50 2008
@@ -129,6 +129,8 @@
     if (!SymInitialize(GetCurrentProcess(), NULL, TRUE))
         return;
 
+    SymSetOptions(SYMOPT_LOAD_LINES | SYMOPT_UNDNAME);
+
     BYTE smBuf[sizeof(SYMBOL_INFO) + SD_MNAME_LENGTH - 1];
     PSYMBOL_INFO pSymb = (PSYMBOL_INFO)smBuf;
     pSymb->SizeOfStruct = sizeof(SYMBOL_INFO);
@@ -186,7 +188,7 @@
 
         if (hdbghelp)
         {
-            SymSetOptions(SYMOPT_LOAD_LINES);
+            SymSetOptions(SYMOPT_LOAD_LINES | SYMOPT_UNDNAME);
             g_SymFromAddr = (SymFromAddr_type)::GetProcAddress(hdbghelp, "SymFromAddr");
             g_SymGetLineFromAddr64 = (SymGetLineFromAddr64_type)::GetProcAddress(hdbghelp,
"SymGetLineFromAddr64");
             g_SymGetLineFromAddr = (SymGetLineFromAddr_type)::GetProcAddress(hdbghelp, "SymGetLineFromAddr");



Mime
View raw message