<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Multiple command prompts with call command"
   href="http://llvm.org/bugs/show_bug.cgi?id=21314">21314</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Multiple command prompts with call command
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mjh@edg.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When using the "call" command, I sometimes get two "(lldb) " command prompts. 
This seems to have happened after upgrading to Xcode 6.0.1 last week.  We have
many debug routines that are designed to be called from the debugger, and some
of them don't have a trailing newline, which seems to result in behavior like
this:

(lldb) call db_type(deduced_type)
(lldb) ng.Class<?>(lldb)

This should have printed "java.lang.Class<?>" with no newline, but the first
seven characters appear to have been overwritten by "(lldb) ".

Note that it appears to work when there's a newline:

(lldb) call (void)fprintf(f_debug, "Hello World\n")
Hello World
(lldb) call (void)fprintf(f_debug, "Hello World")
(lldb) orld(lldb)

Perhaps two prompts are being emitted in both cases, but when there's a newline
they overwrite each other?

Here's the version I'm using:

(lldb) version
lldb-320.4.124.10
(lldb)

A co-worker is using lldb-320.3.100 and doesn't see the problem.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>