зеркало из https://github.com/mozilla/pjs.git
+ 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.
This commit is contained in:
Родитель
261c442349
Коммит
f55cdc71aa
|
@ -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; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче