src/os/windows/vm/os_windows.cpp

changeset 2521
b83527d0482d
parent 2520
63d374c54045
child 2584
da091bb67459
     1.1 --- a/src/os/windows/vm/os_windows.cpp	Wed Feb 09 11:08:10 2011 +0100
     1.2 +++ b/src/os/windows/vm/os_windows.cpp	Thu Feb 10 12:55:56 2011 +0100
     1.3 @@ -956,9 +956,14 @@
     1.4      return;
     1.5    }
     1.6  
     1.7 -  dumpType = (MINIDUMP_TYPE)(MiniDumpWithFullMemory | MiniDumpWithFullMemoryInfo |
     1.8 -    MiniDumpWithHandleData | MiniDumpWithThreadInfo | MiniDumpWithUnloadedModules);
     1.9 -
    1.10 +  dumpType = (MINIDUMP_TYPE)(MiniDumpWithFullMemory | MiniDumpWithHandleData);
    1.11 +
    1.12 +// Older versions of dbghelp.h doesn't contain all the dumptypes we want, dbghelp.h with
    1.13 +// API_VERSION_NUMBER 11 or higher contains the ones we want though
    1.14 +#if API_VERSION_NUMBER >= 11
    1.15 +  dumpType = (MINIDUMP_TYPE)(dumpType | MiniDumpWithFullMemoryInfo | MiniDumpWithThreadInfo |
    1.16 +    MiniDumpWithUnloadedModules);
    1.17 +#endif
    1.18  
    1.19    cwd = get_current_directory(NULL, 0);
    1.20    jio_snprintf(buffer, bufferSize, "%s\\hs_err_pid%u.mdmp",cwd, current_process_id());

mercurial