[lldb-dev] non-stop mode with lldb-mi?

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Fri Feb 3 08:45:27 PST 2017


Non-stop mode is a huge change to the core of LLDB isn’t it. I think you might think this is easier than it actually is to enable in LLDB? 

Is non-stop mode where you can leave some threads running while others are stopped? The biggest issue with this is to do it right we need to be able to emulate instructions so that if 3 threads hit breakpoints, we would need to emulate the instruction that used to be at the breakpoint in LLDB since we can’t remove the breakpoint (unless you stop the other threads which defeats the purpose of non-stop mode) without the other 2 threads possibly missing the breakpoint while you disable breakpoint, single step, enable breakpoint.

Greg

> On Feb 3, 2017, at 7:54 AM, Ted Woodward via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> That turns on and off async, but not non-stop.
>  
> I’m working on adding support for –gdb-set and –gdb-show non-stop, and will post my changes on phabricator when I’m done.
>  
> --
> Qualcomm Innovation Center, Inc.
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
>  
> From: Ilia K [mailto:ki.stfu at gmail.com] 
> Sent: Wednesday, February 01, 2017 11:13 PM
> To: Ted Woodward <ted.woodward at codeaurora.org>
> Cc: LLDB <lldb-dev at lists.llvm.org>
> Subject: Re: [lldb-dev] non-stop mode with lldb-mi?
>  
> Please check `-gdb-set target.async` option. Probably that's what you need.
>  
> On Thu, Feb 2, 2017 at 1:44 AM, Ted Woodward via lldb-dev <lldb-dev at lists.llvm.org <mailto:lldb-dev at lists.llvm.org>> wrote:
>> Does lldb-mi support non-stop mode?
>>  
>> If so, is there a way to set it besides “settings set target.non-stop-mode true”?
>>  
>> --
>> Qualcomm Innovation Center, Inc.
>> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
>>  
>> 
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at lists.llvm.org <mailto:lldb-dev at lists.llvm.org>
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev>
> 
> 
>  
> -- 
> - Ilia
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170203/8c1d11e0/attachment.html>


More information about the lldb-dev mailing list