hanchenye-llvm-project/lldb/source/Core
Greg Clayton bd82a5d2cc Added a new variant of SBTarget::Launch() that deprectates the old one that
takes separate file handles for stdin, stdout, and stder and also allows for
the working directory to be specified.

Added support to "process launch" to a new option: --working-dir=PATH. We
can now set the working directory. If this is not set, it defaults to that
of the process that has LLDB loaded. Added the working directory to the
host LaunchInNewTerminal function to allows the current working directory 
to be set in processes that are spawned in their own terminal. Also hooked this
up to the lldb_private::Process and all mac plug-ins. The linux plug-in had its
API changed, but nothing is making use of it yet. Modfied "debugserver" and
"darwin-debug" to also handle the current working directory options and modified
the code in LLDB that spawns these tools to pass the info along.

Fixed ProcessGDBRemote to properly pass along all file handles for stdin, stdout
and stderr. 

After clearing the default values for the stdin/out/err file handles for
process to be NULL, we had a crasher in UserSettingsController::UpdateStringVariable
which is now fixed. Also fixed the setting of boolean values to be able to
be set as "true", "yes", "on", "1" for true (case insensitive) and "false", "no",
"off", or "0" for false.

Fixed debugserver to properly handle files for STDIN, STDOUT and STDERR that are not
already opened. Previous to this fix debugserver would only correctly open and dupe
file handles for the slave side of a pseudo terminal. It now correctly handles
getting STDIN for the inferior from a file, and spitting STDOUT and STDERR out to
files. Also made sure the file handles were correctly opened with the NOCTTY flag
for terminals.

llvm-svn: 124060
2011-01-23 05:56:20 +00:00
..
Address.cpp Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener. 2011-01-08 20:28:42 +00:00
AddressRange.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
AddressResolver.cpp
AddressResolverFileLine.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00
AddressResolverName.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00
ArchSpec.cpp Use generic CPU types instead of hard coding to mach-o when getting default byte order (patch from Stephen Wilson). 2011-01-18 21:47:52 +00:00
Baton.cpp
Broadcaster.cpp Broadcaster::AddListener(): Bail out early if the passed in Listener pointer is 2010-12-22 19:29:31 +00:00
Communication.cpp Do not pass an invalid thread to Thread{Cancel,Join}. 2011-01-12 04:22:54 +00:00
Connection.cpp
ConnectionFileDescriptor.cpp Patch from Stephen Wilson: 2010-12-20 21:07:54 +00:00
ConstString.cpp Made many ConstString functions inlined in the header file. 2010-10-15 22:48:33 +00:00
DataBufferHeap.cpp
DataBufferMemoryMap.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
DataExtractor.cpp Added complete complex support for displaying and parsing complex types. 2011-01-15 02:52:14 +00:00
Debugger.cpp Add API and implementation for SBDebugger::Destroy and Debugger::Destroy. 2011-01-22 01:02:07 +00:00
Disassembler.cpp Added the ability for Target::ReadMemory to prefer to read from the file 2011-01-07 01:57:07 +00:00
DynamicLoader.cpp General command line help cleanup: 2010-09-18 03:37:20 +00:00
Error.cpp Fixed an error in the type map for "char **" that was a bad memory smasher. 2011-01-14 04:54:56 +00:00
Event.cpp Added support for breakpoint conditions. I also had to separate the "run the expression" part of ClangFunction::Execute from the "Gather the expression result" so that in the case of the Breakpoint condition I can move the condition evaluation into the normal thread plan processing. 2010-10-14 23:45:03 +00:00
FileSpec.cpp Updated to revision 123723 of LLVM, to bring in 2011-01-18 23:32:05 +00:00
FileSpecList.cpp
InputReader.cpp Add the ability to catch and do the right thing with Interrupts (often control-c) 2010-11-19 20:47:54 +00:00
Language.cpp Created lldb::LanguageType by moving an enumeration from the 2010-07-28 02:04:09 +00:00
Listener.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00
Log.cpp Make "log enable -v" work. We were only checking the log's stream's verbosity, not the log's verbosity... 2011-01-22 01:24:30 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Mangled.cpp Move the demangle-failed indication out a bit so other failing cases 2010-12-15 04:27:04 +00:00
Module.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00
ModuleChild.cpp
ModuleList.cpp Remove an assertion that is causing crashes. We do need to find a way to reproduce when this assertion asserts, but we should crash our debug session because of it. For now we log to stderr in hope of tracking it down. 2010-12-20 23:42:12 +00:00
PluginManager.cpp Committing the skeleton of Language runtime plugin classes. 2010-09-23 02:01:19 +00:00
RegularExpression.cpp Improved our argument parsing abilities to be able to handle stuff more like 2010-12-19 03:41:24 +00:00
Scalar.cpp Move Args.{cpp,h} and Options.{cpp,h} to Interpreter where they really belong. 2010-06-15 19:49:27 +00:00
SearchFilter.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Section.cpp Added the ability to dump sections to a certain depth (for when sections 2010-12-08 05:08:21 +00:00
SourceManager.cpp Fixed an issue in our source manager where we were permanently caching source 2010-12-08 20:16:12 +00:00
State.cpp Fixed debugserver to properly attach to a process by name with the 2010-10-18 01:45:30 +00:00
Stream.cpp Updated the lldb_private::Flags class to have better method names and made 2010-10-27 03:32:59 +00:00
StreamFile.cpp We now have SBStream that mirrors the generic stream classes we 2010-09-17 17:42:16 +00:00
StreamString.cpp
StringList.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
TTYState.cpp
Timer.cpp Added a setting to "log timer" so you can see the incremental timings as well: 2010-11-04 23:19:21 +00:00
UUID.cpp Remove unused uuid_t constructor for lldb_private::UUID. 2010-06-10 03:08:05 +00:00
UserID.cpp Move trivial parts of UserID into the header. 2010-06-22 10:44:12 +00:00
UserSettingsController.cpp Added a new variant of SBTarget::Launch() that deprectates the old one that 2011-01-23 05:56:20 +00:00
VMRange.cpp Added support for inlined stack frames being represented as real stack frames 2010-08-24 00:45:41 +00:00
Value.cpp Modified LLDB expressions to not have to JIT and run code just to see variable 2010-12-14 02:59:59 +00:00
ValueObject.cpp Fixed up the SBValue::GetExpressionPath() to be more correct under more 2011-01-21 01:59:00 +00:00
ValueObjectChild.cpp Fixed up the SBValue::GetExpressionPath() to be more correct under more 2011-01-21 01:59:00 +00:00
ValueObjectConstResult.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00
ValueObjectList.cpp StackFrame objects now own ValueObjects for any frame variables (locals, args, 2010-09-02 02:59:18 +00:00
ValueObjectRegister.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00
ValueObjectVariable.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00