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 <vhar...@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 |        vhar...@google.com |   
>  858-442-0868
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev


_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to