hanchenye-llvm-project/lldb/tools/lldb-mi
Ilia K 3b0494c304 MI fix allowing multiple logging instances of lldb-mi to run simultaneously.
Summary:
Currently if two instances of lldb-mi are running with logging enabled using '--log' the log file conflicts. This produces the following error 
MI: Error: File Handler. Error Permission denied opening 'C:\Users\Ewan\LLVM\build\Debug\bin\lldb-mi-log.txt'

Fixed in this patch by renaming lldb-mi-log.txt based on the date, e.g. lldb-mi-log.txt-20150316163631.log, and moving the file into the temp directory by using the --log-dir option.

Regrading previous review comments the P_tmpdir macro is defined in Windows but always points to "\", which doesn't help much. Also when using the Windows API for GetTempPath() dynamic memory seems much more messy.

Patch from ewan@codeplay.com

Reviewers: abidh, EwanCrawford

Subscribers: zturner, lldb-commits, deepak2427

Differential Revision: http://reviews.llvm.org/D9054

llvm-svn: 235589
2015-04-23 12:48:42 +00:00
..
CMakeLists.txt Add -gdb-show and target-async option in -gdb-show command (MI) 2015-03-24 21:15:42 +00:00
MICmdArgContext.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgContext.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgSet.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgSet.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValBase.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValBase.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValConsume.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValConsume.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValFile.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValFile.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValListBase.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValListBase.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValListOfN.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValListOfN.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValNumber.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValNumber.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValOptionLong.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValOptionLong.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValOptionShort.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValOptionShort.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValString.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValString.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValThreadGrp.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdArgValThreadGrp.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdBase.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdBase.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmd.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmd.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdBreak.cpp expose 64 bit addresses through MI 2015-03-19 17:27:23 +00:00
MICmdCmdBreak.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdData.cpp Add comments to LLDB-MI disassembly. 2015-04-15 16:17:50 +00:00
MICmdCmdData.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdEnviro.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdEnviro.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdExec.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdExec.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdFile.cpp Changed a function to static. 2015-03-31 16:30:29 +00:00
MICmdCmdFile.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdGdbInfo.cpp expose 64 bit addresses through MI 2015-03-19 17:27:23 +00:00
MICmdCmdGdbInfo.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdGdbSet.cpp implement gdb-set output-radix 2015-04-07 09:47:23 +00:00
MICmdCmdGdbSet.h implement gdb-set output-radix 2015-04-07 09:47:23 +00:00
MICmdCmdGdbShow.cpp Add -gdb-show and target-async option in -gdb-show command (MI) 2015-03-24 21:15:42 +00:00
MICmdCmdGdbShow.h Add -gdb-show and target-async option in -gdb-show command (MI) 2015-03-24 21:15:42 +00:00
MICmdCmdGdbThread.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdGdbThread.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdMiscellanous.cpp Refactor CMICmnLLDBDebuggerHandleEvents/CMICmnLLDBDebugSessionInfo/CMICmnLLDBDebugSessionInfoVarObj (MI) 2015-04-09 11:17:54 +00:00
MICmdCmdMiscellanous.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdStack.cpp Refactor CMICmnLLDBDebuggerHandleEvents/CMICmnLLDBDebugSessionInfo/CMICmnLLDBDebugSessionInfoVarObj (MI) 2015-04-09 11:17:54 +00:00
MICmdCmdStack.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdSupportInfo.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdSupportInfo.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdSupportList.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdSupportList.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdSymbol.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdSymbol.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdTarget.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdTarget.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdThread.cpp Refactor CMICmnLLDBDebuggerHandleEvents/CMICmnLLDBDebugSessionInfo/CMICmnLLDBDebugSessionInfoVarObj (MI) 2015-04-09 11:17:54 +00:00
MICmdCmdThread.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdTrace.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdTrace.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCmdVar.cpp MI support for '-var-create $regname' command. 2015-04-17 14:49:54 +00:00
MICmdCmdVar.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdCommands.cpp Add -gdb-show and target-async option in -gdb-show command (MI) 2015-03-24 21:15:42 +00:00
MICmdCommands.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdData.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdData.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdFactory.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdFactory.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdInterpreter.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdInterpreter.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdInvoker.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdInvoker.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdMgr.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdMgr.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdMgrSetCmdDeleteCallback.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmdMgrSetCmdDeleteCallback.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnBase.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnBase.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnConfig.h Make lldb-mi handle only MI commands 2015-03-18 10:07:46 +00:00
MICmnLLDBBroadcaster.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLLDBBroadcaster.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLLDBDebugSessionInfo.cpp Refactor CMICmnLLDBDebuggerHandleEvents/CMICmnLLDBDebugSessionInfo/CMICmnLLDBDebugSessionInfoVarObj (MI) 2015-04-09 11:17:54 +00:00
MICmnLLDBDebugSessionInfo.h Refactor CMICmnLLDBDebuggerHandleEvents/CMICmnLLDBDebugSessionInfo/CMICmnLLDBDebugSessionInfoVarObj (MI) 2015-04-09 11:17:54 +00:00
MICmnLLDBDebugSessionInfoVarObj.cpp Fix MiGdbSetShowTestCase.test_lldbmi_gdb_set_ouptut_radix after r234476 2015-04-09 12:21:56 +00:00
MICmnLLDBDebugSessionInfoVarObj.h implement gdb-set output-radix 2015-04-07 09:47:23 +00:00
MICmnLLDBDebugger.cpp Turn off 'quit' confirmation in lldb-mi 2015-03-23 22:45:13 +00:00
MICmnLLDBDebugger.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLLDBDebuggerHandleEvents.cpp Generate an event when a pending breakpoint binds 2015-04-09 12:55:13 +00:00
MICmnLLDBDebuggerHandleEvents.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLLDBProxySBValue.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLLDBProxySBValue.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLLDBUtilSBValue.cpp Fix MiGdbSetShowTestCase.test_lldbmi_gdb_set_ouptut_radix after r234476 2015-04-09 12:21:56 +00:00
MICmnLLDBUtilSBValue.h Fix MiGdbSetShowTestCase.test_lldbmi_gdb_set_ouptut_radix after r234476 2015-04-09 12:21:56 +00:00
MICmnLog.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLog.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnLogMediumFile.cpp MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MICmnLogMediumFile.h MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MICmnMIOutOfBandRecord.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIOutOfBandRecord.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIResultRecord.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIResultRecord.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValue.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValue.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueConst.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueConst.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueList.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueList.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueResult.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueResult.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueTuple.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnMIValueTuple.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnResources.cpp MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MICmnResources.h MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MICmnStreamStderr.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnStreamStderr.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnStreamStdin.cpp Fix infinite loop when ^D was pressed (MI) 2015-03-26 15:10:32 +00:00
MICmnStreamStdin.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnStreamStdout.cpp Fix CMICmnStreamStdout::WritePriv which causes a stack overflow (MI) 2015-04-13 14:40:16 +00:00
MICmnStreamStdout.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnThreadMgrStd.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MICmnThreadMgrStd.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIDataTypes.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIDriver.cpp Fix handling of the executable arg which contains spaces (MI) 2015-04-14 14:12:22 +00:00
MIDriver.h Add support for CLI commands in lldb-mi 2015-03-24 20:59:38 +00:00
MIDriverBase.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIDriverBase.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIDriverMain.cpp Remove redundant code from lldb-mi. 2015-03-24 14:07:25 +00:00
MIDriverMgr.cpp MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MIDriverMgr.h Remove redundant code from lldb-mi. 2015-03-24 14:07:25 +00:00
MIExtensions.txt Add -p and -r options to lldb-mi command -file-exec-file-and-symbols to support iOS debugging on macOS. 2015-03-12 18:35:54 +00:00
MIReadMe.txt Make lldb-mi handle only MI commands 2015-03-18 10:07:46 +00:00
MIUtilDateTimeStd.cpp MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MIUtilDateTimeStd.h MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MIUtilDebug.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilDebug.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilFileStd.cpp Changed a function to static. 2015-03-31 16:30:29 +00:00
MIUtilFileStd.h Changed a function to static. 2015-03-31 16:30:29 +00:00
MIUtilMapIdToVariant.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilMapIdToVariant.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSingletonBase.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSingletonHelper.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilString.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilString.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSystemLinux.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSystemLinux.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSystemOsx.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSystemOsx.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilSystemWindows.cpp MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
MIUtilSystemWindows.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilThreadBaseStd.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilThreadBaseStd.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilVariant.cpp Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
MIUtilVariant.h Remove redundant comments from lldb-mi source files. 2015-03-16 18:18:18 +00:00
Makefile
Platform.cpp Remove redundant code from lldb-mi. 2015-03-24 14:07:25 +00:00
Platform.h Fix PATH_MAX definition after remarks in r231917 (MI) 2015-03-12 04:18:47 +00:00
lldb-Info.plist