<div dir="ltr">Hello Abid,<div><br></div><div>Yes, it works.</div><div><br></div><div>FYI: I have added comment back (see r230351).</div><div><br></div><div>Thanks,</div><div>Ilia</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 8:25 PM, Abid, Hafiz <span dir="ltr"><<a href="mailto:Hafiz_Abid@mentor.com" target="_blank">Hafiz_Abid@mentor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Ilia,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have adjusted this test a bit to fix the failure on Linux in 230347. Please check that it has not broken for you.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Abid<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Ilia K [mailto:<a href="mailto:ki.stfu@gmail.com" target="_blank">ki.stfu@gmail.com</a>]
<br>
<b>Sent:</b> 24 February 2015 10:37<br>
<b>To:</b> <a href="mailto:dawn@burble.org" target="_blank">dawn@burble.org</a><br>
<b>Cc:</b> Abid, Hafiz; <a href="mailto:lldb-commits@cs.uiuc.edu" target="_blank">lldb-commits@cs.uiuc.edu</a><br>
<b>Subject:</b> Re: [Lldb-commits] [lldb] r230237 - Fix a problem where lldb-mi would not stop the debuggee after -exec-interrupt command.<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Fixed by r230320.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Ilia<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Feb 24, 2015 at 1:19 PM, Ilia K <<a href="mailto:ki.stfu@gmail.com" target="_blank">ki.stfu@gmail.com</a>> wrote:<u></u><u></u></p>
<div>
<p class="MsoNormal">Hello Dawn,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'll fix this problem soon. Sorry for inconvenience.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Ilia<u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Feb 24, 2015 at 4:31 AM, <<a href="mailto:dawn@burble.org" target="_blank">dawn@burble.org</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal">This commit the broke test_lldbmi_stopped_when_stopatentry_remote test of<br>
TestMiNotification.py on our master/upstream OSX build.<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
On Mon, Feb 23, 2015 at 06:27:18PM -0000, Hafiz Abid Qadeer wrote:<br>
> Author: abidh<br>
> Date: Mon Feb 23 12:27:17 2015<br>
> New Revision: 230237<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=230237&view=rev" target="_blank">
http://llvm.org/viewvc/llvm-project?rev=230237&view=rev</a><br>
> Log:<br>
> Fix a problem where lldb-mi would not stop the debuggee after -exec-interrupt command.<br>
><br>
> Summary:<br>
> This revision fixes a problem where lldb-mi would not stop the execution after exec-interrupt call.<br>
> On Linux, SIGSTOP is used to stop the debuggee process. LLDB stopped the debuggee alright. But when<br>
> lldb-mi received the notification of stopping with reason as SIGSTOP, it would resume the process.<br>
> This was heppening in CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStopSignal. This function aslo<br>
> used hard coded numbers for signal istead of symbolic names.<br>
><br>
> This revision changes code to treat SIGSTOP reason as SIGINT. Also used symbolic names for signals<br>
> instead of numbers.<br>
><br>
> Reviewers: ki.stfu, clayborg<br>
><br>
> Reviewed By: ki.stfu, clayborg<br>
><br>
> Subscribers: zturner, lldb-commits<br>
><br>
> Differential Revision: <a href="http://reviews.llvm.org/D7783" target="_blank">
http://reviews.llvm.org/D7783</a><br>
><br>
> Modified:<br>
>     lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py<br>
>     lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp<br>
>     lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h<br>
><br>
> Modified: lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py?rev=230237&r1=230236&r2=230237&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py?rev=230237&r1=230236&r2=230237&view=diff</a><br>
> ==============================================================================<br>
> --- lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py (original)<br>
> +++ lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py Mon Feb 23 12:27:17 2015<br>
> @@ -37,7 +37,7 @@ class MiSignalTestCase(lldbmi_testcase.M<br>
><br>
>          # Test that -exec-interrupt can interrupt an execution<br>
>          self.runCmd("-exec-interrupt")<br>
> -        self.expect("\*stopped,reason=\"signal-received\"")<br>
> +        self.expect("\*stopped,reason=\"signal-received\",signal-name=\"SIGINT\",signal-meaning=\"Interrupt\",.*thread-id=\"1\",stopped-threads=\"all\"")<br>
><br>
>          # Continue (to loop forever)<br>
>          self.runCmd("-exec-continue")<br>
> @@ -45,7 +45,7 @@ class MiSignalTestCase(lldbmi_testcase.M<br>
><br>
>          # Test that Ctrl+C can interrupt an execution<br>
>          self.child.sendintr() #FIXME: here uses self.child directly<br>
> -        self.expect("\*stopped,reason=\"signal-received\"")<br>
> +        self.expect("\*stopped,reason=\"signal-received\",signal-name=\"SIGINT\",signal-meaning=\"Interrupt\",.*thread-id=\"1\",stopped-threads=\"all\"")<br>
><br>
>      @lldbmi_test<br>
>      @expectedFailureWindows("<a href="http://llvm.org/pr22274" target="_blank">llvm.org/pr22274</a>: need a pexpect replacement for windows")<br>
><br>
> Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp?rev=230237&r1=230236&r2=230237&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp?rev=230237&r1=230236&r2=230237&view=diff</a><br>
> ==============================================================================<br>
> --- lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp (original)<br>
> +++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp Mon Feb 23 12:27:17 2015<br>
> @@ -27,6 +27,7 @@<br>
>  #include "lldb/API/SBThread.h"<br>
>  #include "lldb/API/SBCommandInterpreter.h"<br>
>  #include "lldb/API/SBCommandReturnObject.h"<br>
> +#include "lldb/API/SBUnixSignals.h"<br>
>  #ifdef _WIN32<br>
>  #include <io.h> // For the ::_access()<br>
>  #else<br>
> @@ -88,6 +89,11 @@ CMICmnLLDBDebuggerHandleEvents::Initiali<br>
>          return MIstatus::success;<br>
><br>
>      m_bInitialized = MIstatus::success;<br>
> +    m_bSignalsInitialized = false;<br>
> +    m_SIGINT = 0;<br>
> +    m_SIGSTOP = 0;<br>
> +    m_SIGSEGV = 0;<br>
> +    m_SIGTRAP = 0;<br>
><br>
>      return m_bInitialized;<br>
>  }<br>
> @@ -832,106 +838,103 @@ CMICmnLLDBDebuggerHandleEvents::HandlePr<br>
>  {<br>
>      bool bOk = MIstatus::success;<br>
><br>
> +    InitializeSignals ();<br>
>      lldb::SBProcess sbProcess = CMICmnLLDBDebugSessionInfo::Instance().GetProcess();<br>
>      const MIuint64 nStopReason = sbProcess.GetSelectedThread().GetStopReasonDataAtIndex(0);<br>
> -    switch (nStopReason)<br>
> +    if (nStopReason == m_SIGINT || nStopReason == m_SIGSTOP)<br>
>      {<br>
> -        case 2: // Terminal interrupt signal. SIGINT<br>
> -        {<br>
> -            // MI print "*stopped,reason=\"signal-received\",signal-name=\"SIGNINT\",signal-meaning=\"Interrupt\",frame={%s}"<br>
> -            const CMICmnMIValueConst miValueConst("signal-received");<br>
> -            const CMICmnMIValueResult miValueResult("reason", miValueConst);<br>
> -            CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_Stopped, miValueResult);<br>
> -            const CMICmnMIValueConst miValueConst2("SIGINT");<br>
> -            const CMICmnMIValueResult miValueResult2("signal-name", miValueConst2);<br>
> -            bOk = miOutOfBandRecord.Add(miValueResult2);<br>
> -            const CMICmnMIValueConst miValueConst3("Interrupt");<br>
> -            const CMICmnMIValueResult miValueResult3("signal-meaning", miValueConst3);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult3);<br>
> -            CMICmnMIValueTuple miValueTuple;<br>
> -            bOk = bOk && MiHelpGetCurrentThreadFrame(miValueTuple);<br>
> -            const CMICmnMIValueResult miValueResult5("frame", miValueTuple);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult5);<br>
> -            bOk = bOk && MiOutOfBandRecordToStdout(miOutOfBandRecord);<br>
> -            bOk = bOk && TextToStdout("(gdb)");<br>
> -        }<br>
> -        break;<br>
> -        case 11: // Invalid memory reference. SIGSEGV<br>
> -        {<br>
> -            // MI print "*stopped,reason=\"signal-received\",signal-name=\"SIGSEGV\",signal-meaning=\"Segmentation<br>
> -            // fault\",thread-id=\"%d\",frame={%s}"<br>
> -            const CMICmnMIValueConst miValueConst("signal-received");<br>
> -            const CMICmnMIValueResult miValueResult("reason", miValueConst);<br>
> -            CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_Stopped, miValueResult);<br>
> -            const CMICmnMIValueConst miValueConst2("SIGSEGV");<br>
> -            const CMICmnMIValueResult miValueResult2("signal-name", miValueConst2);<br>
> -            bOk = miOutOfBandRecord.Add(miValueResult2);<br>
> -            const CMICmnMIValueConst miValueConst3("Segmentation fault");<br>
> -            const CMICmnMIValueResult miValueResult3("signal-meaning", miValueConst3);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult3);<br>
> -            const CMIUtilString strThreadId(CMIUtilString::Format("%d", sbProcess.GetSelectedThread().GetIndexID()));<br>
> -            const CMICmnMIValueConst miValueConst4(strThreadId);<br>
> -            const CMICmnMIValueResult miValueResult4("thread-id", miValueConst4);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult4);<br>
> -            CMICmnMIValueTuple miValueTuple;<br>
> -            bOk = bOk && MiHelpGetCurrentThreadFrame(miValueTuple);<br>
> -            const CMICmnMIValueResult miValueResult5("frame", miValueTuple);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult5);<br>
> -            bOk = bOk && MiOutOfBandRecordToStdout(miOutOfBandRecord);<br>
> -            // Note no "(gdb)" output here<br>
> -        }<br>
> -        break;<br>
> -        case 19:<br>
> -            if (sbProcess.IsValid())<br>
> -                sbProcess.Continue();<br>
> -            break;<br>
> -        case 5: //  Trace/breakpoint trap. SIGTRAP<br>
> +        // MI print "*stopped,reason=\"signal-received\",signal-name=\"SIGNINT\",signal-meaning=\"Interrupt\",frame={%s}"<br>
> +        const CMICmnMIValueConst miValueConst("signal-received");<br>
> +        const CMICmnMIValueResult miValueResult("reason", miValueConst);<br>
> +        CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_Stopped, miValueResult);<br>
> +        const CMICmnMIValueConst miValueConst2("SIGINT");<br>
> +        const CMICmnMIValueResult miValueResult2("signal-name", miValueConst2);<br>
> +        bOk = miOutOfBandRecord.Add(miValueResult2);<br>
> +        const CMICmnMIValueConst miValueConst3("Interrupt");<br>
> +        const CMICmnMIValueResult miValueResult3("signal-meaning", miValueConst3);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult3);<br>
> +        CMICmnMIValueTuple miValueTuple;<br>
> +        bOk = bOk && MiHelpGetCurrentThreadFrame(miValueTuple);<br>
> +        const CMICmnMIValueResult miValueResult5("frame", miValueTuple);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult5);<br>
> +        const CMIUtilString strThreadId(CMIUtilString::Format("%d", sbProcess.GetSelectedThread().GetIndexID()));<br>
> +        const CMICmnMIValueConst miValueConst6(strThreadId);<br>
> +        const CMICmnMIValueResult miValueResult6("thread-id", miValueConst6);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult6);<br>
> +        const CMICmnMIValueConst miValueConst7("all");<br>
> +        const CMICmnMIValueResult miValueResult7("stopped-threads", miValueConst7);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult7);<br>
> +        bOk = bOk && MiOutOfBandRecordToStdout(miOutOfBandRecord);<br>
> +        bOk = bOk && TextToStdout("(gdb)");<br>
> +    }<br>
> +    else if (nStopReason == m_SIGSEGV)<br>
> +    {<br>
> +        // MI print "*stopped,reason=\"signal-received\",signal-name=\"SIGSEGV\",signal-meaning=\"Segmentation<br>
> +        // fault\",thread-id=\"%d\",frame={%s}"<br>
> +        const CMICmnMIValueConst miValueConst("signal-received");<br>
> +        const CMICmnMIValueResult miValueResult("reason", miValueConst);<br>
> +        CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_Stopped, miValueResult);<br>
> +        const CMICmnMIValueConst miValueConst2("SIGSEGV");<br>
> +        const CMICmnMIValueResult miValueResult2("signal-name", miValueConst2);<br>
> +        bOk = miOutOfBandRecord.Add(miValueResult2);<br>
> +        const CMICmnMIValueConst miValueConst3("Segmentation fault");<br>
> +        const CMICmnMIValueResult miValueResult3("signal-meaning", miValueConst3);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult3);<br>
> +        const CMIUtilString strThreadId(CMIUtilString::Format("%d", sbProcess.GetSelectedThread().GetIndexID()));<br>
> +        const CMICmnMIValueConst miValueConst4(strThreadId);<br>
> +        const CMICmnMIValueResult miValueResult4("thread-id", miValueConst4);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult4);<br>
> +        CMICmnMIValueTuple miValueTuple;<br>
> +        bOk = bOk && MiHelpGetCurrentThreadFrame(miValueTuple);<br>
> +        const CMICmnMIValueResult miValueResult5("frame", miValueTuple);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult5);<br>
> +        bOk = bOk && MiOutOfBandRecordToStdout(miOutOfBandRecord);<br>
> +        // Note no "(gdb)" output here<br>
> +    }<br>
> +    else if (nStopReason == m_SIGTRAP)<br>
> +    {<br>
> +        lldb::SBThread thread = sbProcess.GetSelectedThread();<br>
> +        const MIuint nFrames = thread.GetNumFrames();<br>
> +        if (nFrames > 0)<br>
>          {<br>
> -            lldb::SBThread thread = sbProcess.GetSelectedThread();<br>
> -            const MIuint nFrames = thread.GetNumFrames();<br>
> -            if (nFrames > 0)<br>
> +            lldb::SBFrame frame = thread.GetFrameAtIndex(0);<br>
> +            const char *pFnName = frame.GetFunctionName();<br>
> +            if (pFnName != nullptr)<br>
>              {<br>
> -                lldb::SBFrame frame = thread.GetFrameAtIndex(0);<br>
> -                const char *pFnName = frame.GetFunctionName();<br>
> -                if (pFnName != nullptr)<br>
> -                {<br>
> -                    const CMIUtilString fnName = CMIUtilString(pFnName);<br>
> -                    static const CMIUtilString threadCloneFn = CMIUtilString("__pthread_clone");<br>
> +                const CMIUtilString fnName = CMIUtilString(pFnName);<br>
> +                static const CMIUtilString threadCloneFn = CMIUtilString("__pthread_clone");<br>
><br>
> -                    if (CMIUtilString::Compare(threadCloneFn, fnName))<br>
> +                if (CMIUtilString::Compare(threadCloneFn, fnName))<br>
> +                {<br>
> +                    if (sbProcess.IsValid())<br>
>                      {<br>
> -                        if (sbProcess.IsValid())<br>
> -                        {<br>
> -                            sbProcess.Continue();<br>
> -                            vwrbShouldBrk = true;<br>
> -                            break;<br>
> -                        }<br>
> +                        sbProcess.Continue();<br>
> +                        vwrbShouldBrk = true;<br>
>                      }<br>
>                  }<br>
>              }<br>
>          }<br>
> -        default:<br>
> -        {<br>
> -            // MI print "*stopped,reason=\"signal-received\",signal=\"%lld\",thread-id=\"%d\",stopped-threads=\"all\""<br>
> -            const CMICmnMIValueConst miValueConst("signal-received");<br>
> -            const CMICmnMIValueResult miValueResult("reason", miValueConst);<br>
> -            CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_Stopped, miValueResult);<br>
> -            const CMIUtilString strReason(CMIUtilString::Format("%lld", nStopReason));<br>
> -            const CMICmnMIValueConst miValueConst2(strReason);<br>
> -            const CMICmnMIValueResult miValueResult2("signal", miValueConst2);<br>
> -            bOk = miOutOfBandRecord.Add(miValueResult2);<br>
> -            const CMIUtilString strThreadId(CMIUtilString::Format("%d", sbProcess.GetSelectedThread().GetIndexID()));<br>
> -            const CMICmnMIValueConst miValueConst3(strThreadId);<br>
> -            const CMICmnMIValueResult miValueResult3("thread-id", miValueConst3);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult3);<br>
> -            const CMICmnMIValueConst miValueConst4("all");<br>
> -            const CMICmnMIValueResult miValueResult4("stopped-threads", miValueConst4);<br>
> -            bOk = bOk && miOutOfBandRecord.Add(miValueResult4);<br>
> -            bOk = bOk && MiOutOfBandRecordToStdout(miOutOfBandRecord);<br>
> -            bOk = bOk && TextToStdout("(gdb)");<br>
> -        }<br>
> -    } // switch( nStopReason )<br>
> -<br>
> +    }<br>
> +    else<br>
> +    {<br>
> +        // MI print "*stopped,reason=\"signal-received\",signal=\"%lld\",thread-id=\"%d\",stopped-threads=\"all\""<br>
> +        const CMICmnMIValueConst miValueConst("signal-received");<br>
> +        const CMICmnMIValueResult miValueResult("reason", miValueConst);<br>
> +        CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_Stopped, miValueResult);<br>
> +        const CMIUtilString strReason(CMIUtilString::Format("%lld", nStopReason));<br>
> +        const CMICmnMIValueConst miValueConst2(strReason);<br>
> +        const CMICmnMIValueResult miValueResult2("signal", miValueConst2);<br>
> +        bOk = miOutOfBandRecord.Add(miValueResult2);<br>
> +        const CMIUtilString strThreadId(CMIUtilString::Format("%d", sbProcess.GetSelectedThread().GetIndexID()));<br>
> +        const CMICmnMIValueConst miValueConst3(strThreadId);<br>
> +        const CMICmnMIValueResult miValueResult3("thread-id", miValueConst3);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult3);<br>
> +        const CMICmnMIValueConst miValueConst4("all");<br>
> +        const CMICmnMIValueResult miValueResult4("stopped-threads", miValueConst4);<br>
> +        bOk = bOk && miOutOfBandRecord.Add(miValueResult4);<br>
> +        bOk = bOk && MiOutOfBandRecordToStdout(miOutOfBandRecord);<br>
> +        bOk = bOk && TextToStdout("(gdb)");<br>
> +    }<br>
>      return bOk;<br>
>  }<br>
><br>
> @@ -1651,3 +1654,29 @@ CMICmnLLDBDebuggerHandleEvents::TextToSt<br>
>  {<br>
>      return CMICmnStreamStderr::TextToStderr(vrTxt);<br>
>  }<br>
> +<br>
> +//++ ------------------------------------------------------------------------------------<br>
> +// Details: Initialize the member variables with the signal values in this process<br>
> +//          file.<br>
> +// Type:    Method.<br>
> +// Args:    None<br>
> +// Return:  Noen<br>
> +// Throws:  None.<br>
> +//--<br>
> +void<br>
> +CMICmnLLDBDebuggerHandleEvents::InitializeSignals()<br>
> +{<br>
> +    if (!m_bSignalsInitialized)<br>
> +    {<br>
> +        lldb::SBProcess sbProcess = CMICmnLLDBDebugSessionInfo::Instance().GetProcess();<br>
> +        if (sbProcess.IsValid())<br>
> +        {<br>
> +            lldb::SBUnixSignals unix_signals = sbProcess.GetUnixSignals();<br>
> +            m_SIGINT = unix_signals.GetSignalNumberFromName("SIGINT");<br>
> +            m_SIGSTOP = unix_signals.GetSignalNumberFromName("SIGSTOP");<br>
> +            m_SIGSEGV = unix_signals.GetSignalNumberFromName("SIGSEGV");<br>
> +            m_SIGTRAP = unix_signals.GetSignalNumberFromName("SIGTRAP");<br>
> +            m_bSignalsInitialized = true;<br>
> +        }<br>
> +    }<br>
> +}<br>
><br>
> Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h?rev=230237&r1=230236&r2=230237&view=diff" target="_blank">
http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h?rev=230237&r1=230236&r2=230237&view=diff</a><br>
> ==============================================================================<br>
> --- lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h (original)<br>
> +++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h Mon Feb 23 12:27:17 2015<br>
> @@ -92,4 +92,10 @@ class CMICmnLLDBDebuggerHandleEvents : p<br>
>    private:<br>
>      // From CMICmnBase<br>
>      /* dtor */ virtual ~CMICmnLLDBDebuggerHandleEvents(void);<br>
> +    void InitializeSignals();<br>
> +    bool m_bSignalsInitialized;<br>
> +    MIuint64 m_SIGINT;<br>
> +    MIuint64 m_SIGSTOP;<br>
> +    MIuint64 m_SIGSEGV;<br>
> +    MIuint64 m_SIGTRAP;<br>
>  };<br>
><br>
><br>
> _______________________________________________<br>
> lldb-commits mailing list<br>
> <a href="mailto:lldb-commits@cs.uiuc.edu" target="_blank">lldb-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu" target="_blank">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>