DBG: separate directory for memory dumps
This commit is contained in:
parent
67d8b296a4
commit
be3520f383
|
@ -2515,7 +2515,7 @@ CMDRESULT cbInstrSavedata(int argc, char* argv[])
|
|||
|
||||
String name = argv[1];
|
||||
if(name == ":memdump:")
|
||||
name = StringUtils::sprintf("memdump_%X_%p_%x.bin", fdProcessInfo->dwProcessId, addr, size);
|
||||
name = StringUtils::sprintf("%s\\memdumps\\memdump_%X_%p_%x.bin", szProgramDir, fdProcessInfo->dwProcessId, addr, size);
|
||||
|
||||
if(!FileHelper::WriteAllData(name, data(), data.size()))
|
||||
{
|
||||
|
|
|
@ -638,11 +638,12 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
|
|||
info.execute = DbgScriptDllExec;
|
||||
GuiRegisterScriptLanguage(&info);
|
||||
dputs(QT_TRANSLATE_NOOP("DBG", "Starting command loop..."));
|
||||
hCommandLoopThread = CreateThread(0, 0, DbgCommandLoopThread, 0, 0, 0);
|
||||
hCommandLoopThread = CreateThread(nullptr, 0, DbgCommandLoopThread, nullptr, 0, nullptr);
|
||||
char plugindir[deflen] = "";
|
||||
strcpy_s(plugindir, szProgramDir);
|
||||
strcat_s(plugindir, "\\plugins");
|
||||
CreateDirectoryW(StringUtils::Utf8ToUtf16(plugindir).c_str(), 0);
|
||||
CreateDirectoryW(StringUtils::Utf8ToUtf16(plugindir).c_str(), nullptr);
|
||||
CreateDirectoryW(StringUtils::Utf8ToUtf16(StringUtils::sprintf("%s\\memdumps", szProgramDir)).c_str(), nullptr);
|
||||
dputs(QT_TRANSLATE_NOOP("DBG", "Loading plugins..."));
|
||||
pluginload(plugindir);
|
||||
dputs(QT_TRANSLATE_NOOP("DBG", "Handling command line..."));
|
||||
|
|
Loading…
Reference in New Issue