Skip to content

Commit

Permalink
Merge branch 'win32-crashhandling': create logs when jk2mv crashes
Browse files Browse the repository at this point in the history
- automatically creates a crashlog in the homedirectory whenever jk2mv crashes
- includes build information, loaded modules, a stacktrace and the current console log
- uses (modified) stackwalker library by Jochen Kalmbach (added QVM symbol support)
- appveyor builds now include symbol/debug information
- doesn't work on Windows XP :)
  • Loading branch information
ouned committed Jan 28, 2018
2 parents 56961c3 + 5564844 commit 1b6e8c4
Show file tree
Hide file tree
Showing 10 changed files with 2,121 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -219,6 +219,10 @@ if(MSVC)

set(CMAKE_ASM_MASM_FLAGS "${CMAKE_ASM_MASM_FLAGS} /safeseh") # safe exception handler
endif()

# Set the same options for the build including symbols
set(CMAKE_C_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELEASE})
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELEASE})
elseif ((${CMAKE_C_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_C_COMPILER_ID} MATCHES Clang|AppleClang))
# Additional flags for debug configuration
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3")
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Expand Up @@ -21,13 +21,13 @@ build_script:
choco install -y nsis
cmake -G "Visual Studio 14" -DBuildPortableVersion=OFF ../..
msbuild /m /p:Configuration=Release PACKAGE.vcxproj
msbuild /m /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
} elseif ($env:TYPE -eq "win-x86-portable") {
cmake -G "Visual Studio 14" -DBuildPortableVersion=ON ../..
msbuild /m /p:Configuration=Release PACKAGE.vcxproj
msbuild /m /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
} elseif ($env:TYPE -eq "win-x64-portable") {
cmake -G "Visual Studio 14 Win64" -DBuildPortableVersion=ON ../..
msbuild /m /p:Configuration=Release PACKAGE.vcxproj
msbuild /m /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
}
if (! $?) {
Expand Down
29 changes: 29 additions & 0 deletions libs/StackWalker/LICENSE
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2005 - 2017, Jochen Kalmbach
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
332 changes: 332 additions & 0 deletions libs/StackWalker/README.md

Large diffs are not rendered by default.

0 comments on commit 1b6e8c4

Please sign in to comment.