<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:738286613;
        mso-list-type:hybrid;
        mso-list-template-ids:-584128292 326116614 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">FYI Matthew,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I can reproduce this issue consistently on Ubuntu 12.04 with libedit 2.11, Unity 5.0 and Gnome terminal 3.4.1.1 (all current defaults).  According to
</span><a href="http://llvm.org/bugs/show_bug.cgi?id=14637">http://llvm.org/bugs/show_bug.cgi?id=14637</a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">, a work-around is to upgrade libedit (the NetBSD editline library) to
 version 3.0,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">       
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ashok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> lldb-dev-bounces@cs.uiuc.edu [mailto:lldb-dev-bounces@cs.uiuc.edu]
<b>On Behalf Of </b>Matthew Sorrels<br>
<b>Sent:</b> Tuesday, July 02, 2013 8:26 PM<br>
<b>To:</b> lldb-dev@cs.uiuc.edu<br>
<b>Subject:</b> [lldb-dev] Losing prompt when running any python commands<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm seeing something a little odd but I'm not really sure if it's a bug. 
<br>
<br>
If I start lldb (on Linux) and then execute any python commands, then set a target and a breakpoint and run it, when the breakpoint goes off I've lost my prompt.  It's sitting there waiting for input, but I don't see the "(lldb)" that should be there.  This
 happens when I run any python commands at all.  It appears to just lose the prompt.  Some commands will cause the prompt to return (like bt) but others like n or step execute but the prompt doesn't return.<br>
<br>
This loss of prompt also happens if you run any python commands with command script import.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Is there some sort of mode or is this a bug?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Here's some sample output where I run the python command "script print lldb"<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
matthews@matthews-linux:~/work/llvm/llvm/build$ bin/lldb -x<br>
(lldb) script print lldb<br>
<module 'lldb' from '/data/work/llvm/llvm/build/lib/python2.7/site-packages/lldb/__init__.py'><br>
(lldb) target create /home/matthews/bin/mytest<br>
Current executable set to '/home/matthews/bin/mytest' (x86_64).<br>
(lldb) b main<br>
Breakpoint 1: where = mytest`main + 30 at test.c:14, address = 0x000000000040054e<br>
(lldb) run<br>
Process 20443 launched: '/home/matthews/bin/mytest' (x86_64)<br>
Process 20443 stopped<br>
* thread #1: tid = 0x4fdb, 0x000000000040054e mytest`main(argc=1, argv=0x00007fff62b4b058) + 30 at test.c:14, stop reason = breakpoint 1.1<br>
    frame #0: 0x000000000040054e mytest`main(argc=1, argv=0x00007fff62b4b058) + 30 at test.c:14<br>
   11      int main(int argc, char *argv[])<br>
   12      {<br>
   13          int i;<br>
-> 14          printf("Argc=%d\n", argc);<br>
   15          for(i=0;i<argc;i++)<br>
   16              printf("Argument %d: %s\n", i, argv[i]);<br>
   17          <br>
<should be an (lldb) prompt here but it's just blank and waiting for input><br>
<br>
<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>