+ Flush HTML method dump file after writing it. Otherwise, the file is
truncated if EF dies while compiling. + Print a placeholder disassembled instruction rather than assert-botching, so that the -html option still works. git-svn-id: svn://10.0.0.236/trunk@16856 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
char* disasmx86(long offset, char** startByte, char *limitByte, unsigned long flags )
|
||||
{
|
||||
/* IMPLEMENT: replace GPL'ed code */
|
||||
PR_ASSERT(0);
|
||||
return NULL;
|
||||
(*startByte) += 2;
|
||||
// IMPLEMENT - replace GPL'ed disassembly code
|
||||
return "x86 op";
|
||||
}
|
||||
|
||||
@@ -121,6 +121,13 @@ setLogFile(const char* inFileName)
|
||||
file = fopen(inFileName, "w");
|
||||
return (file != NULL);
|
||||
}
|
||||
|
||||
void LogModuleObject::
|
||||
flushLogFile()
|
||||
{
|
||||
if (file)
|
||||
fflush(file);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@ public:
|
||||
~LogModuleObject();
|
||||
|
||||
bool setLogFile(const char* inFileName);
|
||||
void flushLogFile();
|
||||
size_t logPrint(const char* inFormat, ...) const;
|
||||
void setLogLevel(PRLogModuleLevel inLevel) { level = inLevel; }
|
||||
void setOptions(PRLogModuleOptions inOptions) { options = inOptions; }
|
||||
|
||||
Reference in New Issue
Block a user