hanchenye-llvm-project/lldb/tools
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
..
argdumper Don't export a ton of lldb_private symbols from argdumper. 2015-04-01 17:38:08 +00:00
compact-unwind Two fixes for compact unwind decoding for frameless large-stack-size 2015-01-23 01:02:32 +00:00
darwin-debug Fix darwin-debug installation in cmake (OS X) 2015-02-06 18:13:10 +00:00
darwin-threads Fix examine-threads to build for arm64. 2014-11-14 22:58:25 +00:00
debugserver Build fix for building debugserver for ios. 2015-03-17 23:16:42 +00:00
driver Work around lack of %zd printf format specifier in MSVC libs. 2015-03-30 17:46:36 +00:00
install-headers Fixed our install-headers script to set version 2014-07-17 17:26:38 +00:00
lldb-mi MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
lldb-perf Cleanup how we listen for process events by using the broadcaster class name instead of having to catch each process instance as it comes alive. 2014-08-18 21:09:50 +00:00
lldb-server Use non-blocking waitpid in NativeProcessLinux 2015-04-17 14:07:49 +00:00
CMakeLists.txt Merge lldb-platform and lldb-gdbserver into a single binary 2015-02-18 15:39:41 +00:00
Makefile Merge lldb-platform and lldb-gdbserver into a single binary 2015-02-18 15:39:41 +00:00