Commit 89093e94 authored by Patrick Storz's avatar Patrick Storz 🦄

CMake/MSYS2: Include gdb into distribution

Also include a batch script that should make it easy to collect a
backtrace with relevant info for most users.

Fixes #81
parent a86c8369
Pipeline #66388901 passed with stages
in 115 minutes and 15 seconds
......@@ -270,4 +270,16 @@ if(WIN32)
EXCLUDE "^\\.\\.\\/" # exclude content in parent directories (notably scripts installed to /bin)
)
endforeach()
# gdb
install(FILES
${MINGW_BIN}/gdb.exe
${MINGW_BIN}/libreadline8.dll
DESTINATION bin)
install(DIRECTORY
${MINGW_PATH}/share/gdb
DESTINATION share)
install(FILES
packaging/win32/gdb_create_backtrace.bat
DESTINATION bin)
endif()
@echo off
rem Execute this to create a debug backtrace of an Inkscape crash.
set TRACEFILE=%USERPROFILE%\inkscape_backtrace.txt
echo Thanks for creating a debug backtrace!
echo.
echo After Inkscape starts, try to force the crash.
echo The backtrace will be recorded automatically.
echo.
echo Gathering sytem info...
echo --- INKSCAPE VERSION --- > %TRACEFILE%
inkscape.com -V >> %TRACEFILE%
echo. >> %TRACEFILE%
echo --- SYSTEM INFO --- >> %TRACEFILE%
systeminfo >> %TRACEFILE%
echo.
echo Launching Inkscape, please wait...
echo. >> %TRACEFILE%
echo --- BACKTRACE --- >> %TRACEFILE%
gdb.exe -batch -ex "run" -ex "bt" inkscape.exe >> %TRACEFILE%
echo.
echo Backtrace written to %TRACEFILE%
echo Please attach this file when reporting the issue at https://inkscape.org/report
echo (remove personal information you do not want to share, e.g. your user name)
echo.
pause
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment