mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
Pull in backtrace.c (pre-compiled as backtrace.dll and MinGW dependencies) from http://code.google.com/p/backtrace-mingw. When running debugging snapshots, this will print out a helpful backtrace in eduke32.crashlog. I had to disable stack protectors for debug builds as this was pulling in a dependency that I assume most people won't have. If anyone feels like merging that code into EDuke32 itself and find a way to remove the ugly libintl dependencies, be my guest. In the meantime, sorry for the awful commit.
git-svn-id: https://svn.eduke32.com/eduke32@1715 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5b987e8770
commit
e0588e4a70
7 changed files with 7 additions and 3 deletions
|
@ -52,7 +52,7 @@ ifneq (0,$(RELEASE))
|
||||||
LIBS=-lm
|
LIBS=-lm
|
||||||
else
|
else
|
||||||
# Debugging enabled
|
# Debugging enabled
|
||||||
debug=-ggdb -O0 -DDEBUGGINGAIDS $(F_STACK_PROTECTOR_ALL)
|
debug=-ggdb -O0 -DDEBUGGINGAIDS
|
||||||
LIBS=-lm -rdynamic
|
LIBS=-lm -rdynamic
|
||||||
|
|
||||||
ifneq (0,$(KRANDDEBUG))
|
ifneq (0,$(KRANDDEBUG))
|
||||||
|
|
BIN
polymer/eduke32/backtrace.dll
Normal file
BIN
polymer/eduke32/backtrace.dll
Normal file
Binary file not shown.
|
@ -79,7 +79,7 @@ ifneq ($(RELEASE),0)
|
||||||
LIBS=-lm
|
LIBS=-lm
|
||||||
else
|
else
|
||||||
# Debugging enabled
|
# Debugging enabled
|
||||||
debug=-ggdb -O0 -DDEBUGGINGAIDS -DNOSDLPARACHUTE $(F_STACK_PROTECTOR_ALL)
|
debug=-ggdb -O0 -DDEBUGGINGAIDS -DNOSDLPARACHUTE
|
||||||
LIBS=-lm $(L_SSP) -Wl,--enable-auto-import -rdynamic
|
LIBS=-lm $(L_SSP) -Wl,--enable-auto-import -rdynamic
|
||||||
ifneq (0,$(KRANDDEBUG))
|
ifneq (0,$(KRANDDEBUG))
|
||||||
debug+=-DKRANDDEBUG=1
|
debug+=-DKRANDDEBUG=1
|
||||||
|
|
|
@ -363,6 +363,10 @@ int32_t WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, in
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef DEBUGGINGAIDS
|
||||||
|
LoadLibraryA("backtrace.dll");
|
||||||
|
#endif
|
||||||
|
|
||||||
hdc = GetDC(NULL);
|
hdc = GetDC(NULL);
|
||||||
r = GetDeviceCaps(hdc, BITSPIXEL);
|
r = GetDeviceCaps(hdc, BITSPIXEL);
|
||||||
ReleaseDC(NULL, hdc);
|
ReleaseDC(NULL, hdc);
|
||||||
|
|
BIN
polymer/eduke32/libiconv2.dll
Normal file
BIN
polymer/eduke32/libiconv2.dll
Normal file
Binary file not shown.
BIN
polymer/eduke32/libintl3.dll
Normal file
BIN
polymer/eduke32/libintl3.dll
Normal file
Binary file not shown.
|
@ -10,7 +10,7 @@ clean=veryclean
|
||||||
|
|
||||||
# the following file paths are relative to $source
|
# the following file paths are relative to $source
|
||||||
targets=( eduke32.exe mapster32.exe )
|
targets=( eduke32.exe mapster32.exe )
|
||||||
bin_packaged=( eduke32.exe eduke32.debug.exe mapster32.exe mapster32.debug.exe SEHELP.HLP STHELP.HLP names.h buildlic.txt GNU.TXT m32help.hlp nedmalloc.dll samples/* )
|
bin_packaged=( eduke32.exe eduke32.debug.exe mapster32.exe mapster32.debug.exe backtrace.dll libiconv2.dll libintl3.dll SEHELP.HLP STHELP.HLP names.h buildlic.txt GNU.TXT m32help.hlp nedmalloc.dll samples/* )
|
||||||
not_src_packaged=( psd source/jaudiolib/third-party/vorbis.framework/Versions/A/vorbis Apple )
|
not_src_packaged=( psd source/jaudiolib/third-party/vorbis.framework/Versions/A/vorbis Apple )
|
||||||
|
|
||||||
# group that owns the resulting packages
|
# group that owns the resulting packages
|
||||||
|
|
Loading…
Reference in a new issue