[lldb-dev] -o "process launch" and stdio forwarding

Pavel Labath labath at google.com
Tue Mar 10 10:44:42 PDT 2015


The trick is that you need to start the process from the command line, via
the -o "process launch" argument.

pl

On 10 March 2015 at 17:41, Greg Clayton <gclayton at apple.com> wrote:

> Works fine for me on Mac:
>
> % lldb a.out
> (lldb) target create "a.out"
> Current executable set to 'a.out' (x86_64).
> (lldb) process launch
> Process 22983 launched: '/private/tmp/a.out' (x86_64)
> carp
> Read: carp
> Process 22983 exited with status = 0 (0x00000000)
> (lldb)
>
> > On Mar 10, 2015, at 3:42 AM, Pavel Labath <labath at google.com> wrote:
> >
> > std::cout << "Read: " << s << std::endl;
> >
> > }
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150310/a94317d3/attachment.html>


More information about the lldb-dev mailing list