<div dir="ltr"><div>I can verify that using the libedit from<a href="http://www.thrysoee.dk/editline" target="_blank"> http://www.thrysoee.dk/editline</a>/ does fix the problems with losing the prompt after running a python script. Though its build/install doesn't overwrite the stock Ubuntu version so it was kind of painful to switch just temporarily. Lldb did seem to build just fine with it. It also seemed to handle up-arrow/history and backspace better than the stock version, though I don't really have a repro case for bugs I've seen in that area. (where backing up causes you to get lost on the edit line)<br>
<br></div>I'm not sure we really want to move it into lldb though, but I'd say it's definitely a requirement if you want to use lldb on Linux.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 3, 2013 at 11:35 AM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If we are thinking of building a readline/editline/other line editor package as part of LLDB, we might take a look around and see if there aren't any other non GPLv3 line editors we would rather use.<br>
<br>
I have heard that zsh might have a nice line editor that could be used. I am not sure how well libedit stacks up to competing line editors.<br>
<br>
Greg Clayton<br>
<div><div class="h5"><br>
<br>
On Jul 3, 2013, at 11:14 AM, Matthew Sorrels <<a href="mailto:sorrels.m@gmail.com">sorrels.m@gmail.com</a>> wrote:<br>
<br>
> Looking at libedit was on my list, so I'll take a look at this and see what can be done.<br>
><br>
><br>
> On Wed, Jul 3, 2013 at 9:08 AM, Ed Maste <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br>
> On 3 July 2013 11:49, Malea, Daniel <<a href="mailto:daniel.malea@intel.com">daniel.malea@intel.com</a>> wrote:<br>
> > It's a bug — I've heard reports that building against a newer libedit will fix the problem:<br>
> ><br>
> > <a href="http://www.thrysoee.dk/editline/" target="_blank">http://www.thrysoee.dk/editline/</a><br>
> ><br>
> > However, most distributions ship with an ancient version. I'm not sure if there's any (licensing or other) restrictions that would prevent someone from checking in the updated libedit into lldb source tree…I haven't really had time to look at this problem in detail though..<br>
><br>
> For what it's worth, on FreeBSD lldb picks up the base system's<br>
> libedit, which shares a common ancestry with NetBSD. This problem is<br>
> not reproducible here.<br>
><br>
</div></div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div><br></div>