[lldb-dev] Multiple targets/processes
Jason Molenda
jason at molenda.com
Sun Jan 25 17:20:30 PST 2015
Hi Vince, as for the SB API, take a look at test/api/multiple-debuggers/multi-process-driver.cpp. This particular test program is creating separate Debugger/Target/Processes on multiple threads. It's designed to help find race conditions so it has e.g. 50 threads all debugging the same inferior process, all putting breakpoints on the same place, running to that place, etc. Nothing interesting but you can see how it's straightforward to run multiple inferior processes at one time.
J
> 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