<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Have you tried my other suggestion; doing an actual debug session with an lldb-mi client (emacs/vim/vs code/eclipse)? Of that doesn't work,  I'm afraid you may have to do some detective work here to figure out how to add test coverage for this code path. I ssume that you already tried to create a synthetic test that suspends a process and then queries the status through the MI interface?<div class=""><br class=""></div><div class="">-- adrian<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 19, 2018, at 10:14 PM, Александр Поляков <<a href="mailto:polyakov.alx@gmail.com" class="">polyakov.alx@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family: arial, helvetica, sans-serif; font-size: small;">I've tried to put an assert into HandleProcessEventStateSuspended, but there wasn't a testcase triggering it. So, my question is still actual, any help will be really appreciate.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">пн, 16 июл. 2018 г. в 13:56, Pavel Labath <<a href="mailto:labath@google.com" class="">labath@google.com</a>>:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The eStateSuspended state is used for threads (you can set it via<br class="">
SBThread::Suspend/Resume). It controls whether a "continue" operation<br class="">
on the process will run the thread or not.<br class="">
<br class="">
I am not sure if you can ever see that state on the process itself.<br class="">
<br class="">
<br class="">
On Sat, 14 Jul 2018 at 15:39, Adrian Prantl via lldb-dev<br class="">
<<a href="mailto:lldb-dev@lists.llvm.org" target="_blank" class="">lldb-dev@lists.llvm.org</a>> wrote:<br class="">
><br class="">
><br class="">
><br class="">
> > On Jul 13, 2018, at 10:59 PM, Александр Поляков <<a href="mailto:polyakov.alx@gmail.com" target="_blank" class="">polyakov.alx@gmail.com</a>> wrote:<br class="">
> ><br class="">
> > Hi lldb-dev,<br class="">
> ><br class="">
> > I'm looking at re-implementing of CMICmnLLDBDebugHandleEvents::HandleProcessEventStateSuspended to get rid of HandleCommand("process status") hack and use SB API instead. To check my changes I need to get HandleProcessEventStateSuspended called, so could someone help me with a sequence of lldb-mi commands which will call HandleProcessEventStateSuspended.<br class="">
><br class="">
> Other than reading through the code and manually tracing a sequence where this function gets called, one simple trick you can try is to put an assert(false) into HandleProcessEventStateSuspended, run the testsuite (or perform an lldb-mi debug session) and look for a testacase that triggers the new assertion.<br class="">
><br class="">
> -- adrian<br class="">
><br class="">
> ><br class="">
> > Thanks in advance.<br class="">
> ><br class="">
> > --<br class="">
> > Alexander<br class="">
><br class="">
> _______________________________________________<br class="">
> lldb-dev mailing list<br class="">
> <a href="mailto:lldb-dev@lists.llvm.org" target="_blank" class="">lldb-dev@lists.llvm.org</a><br class="">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><span style="font-family: arial, helvetica, sans-serif; font-size: 12.8px;" class="">Alexander</span><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>