1
0
Fork 0

(svn r3965) - [win32] Remove mapfile generation and generate a pdb file instead. This and the corresponding executable is enough to trace the source of a crash given by crash.txt by using WinDbg for example. Mapfiles are a bit deprecated in the newer VS environments.

- [win32] Show the revision in crash.txt and enable the button to show the crash text in the crash-window 
- Backport of r3871, r3872 from trunk
release/0.4.5
Darkvater 2006-03-18 15:51:04 +00:00
parent beee5698f9
commit 6b664a3ba0
3 changed files with 5 additions and 7 deletions

View File

@ -23,7 +23,7 @@
Name="VCCLCompilerTool"
Optimization="3"
GlobalOptimizations="TRUE"
InlineFunctionExpansion="1"
InlineFunctionExpansion="2"
EnableIntrinsicFunctions="TRUE"
FavorSizeOrSpeed="2"
OmitFramePointers="TRUE"
@ -58,11 +58,8 @@
OutputFile=".\Release/openttd.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Release/openttd.pdb"
GenerateMapFile="TRUE"
MapFileName=".\Release/openttd.map"
MapExports="TRUE"
MapLines="TRUE"
SubSystem="2"
OptimizeReferences="2"
OptimizeForWindows98="1"

View File

@ -46,7 +46,7 @@ BEGIN
PUSHBUTTON "&Close",12,7,49,50,14
PUSHBUTTON "&Submit report",14,81,49,68,14,WS_DISABLED
PUSHBUTTON "&Emergency save",13,155,49,68,14
PUSHBUTTON "",15,243,49,55,14,WS_DISABLED
PUSHBUTTON "",15,243,49,55,14
EDITTEXT 11,7,70,291,118,ES_MULTILINE | ES_READONLY | WS_VSCROLL |
WS_HSCROLL | NOT WS_TABSTOP
LTEXT "",10,36,7,262,34

View File

@ -427,6 +427,7 @@ extern bool CloseConsoleLogIfActive(void);
static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
{
extern const char _openttd_revision[];
char *output;
static bool had_exception;
@ -451,7 +452,7 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
time.wHour,
time.wMinute,
time.wSecond,
"???"
_openttd_revision
);
}