[lldb-dev] Multiple targets/processes
Greg Clayton
gclayton at apple.com
Mon Jan 26 12:54:31 PST 2015
To further clarify: no stdio for a process means the ProcessIOHandler doesn't get pushed and it stop it from trying to take over the terminal and allows commands to be run on the command line while the process is running.
Greg
> On Jan 26, 2015, at 12:53 PM, Greg Clayton <gclayton at apple.com> wrote:
>
> Yes you can, just don't use STDIN/STDOUT:
>
> target create
> process launch --no-stdio
> target create
> process launch --no-stdio
>
> When you use STDIN/OUT/ERR then we hook this up to the in/out/error of the debugger by pushing a new ProcessIOHandler which intercepts all incoming and outgoing data and displays it on a screen. If an IDE was running this, it might create a new SBDebugger, one for each debug window. When the IDE launches a process, it would redirect the STDIO to the slave side of a PTY while the IDE would have the master side open allowing it to communicate with the process on a side channel (stdio window). So you are running into this problem because you are trying to do this with the command line LLDB and IO is enabled.
>
> Gre
>
>
>> On Jan 25, 2015, at 9:55 AM, Vince Harron <vharron at google.com> wrote:
>>
>> Hi all,
>>
>> I've been playing around with lldb's ability to create multiple targets and switch between them from the command line.
>>
>> I can
>>
>> target create
>> process launch
>> ^C
>> target create
>> process launch
>> ^C
>> target select 0
>> cont
>>
>> Is there any way to get both processes running in parallel from the command line? what about the API? Are there any docs I can read about this?
>>
>> Thanks,
>>
>> Vince
>>
>> --
>>
>> Vince Harron | Technical Lead Manager | vharron at google.com | 858-442-0868
>>
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
More information about the lldb-dev
mailing list