<div dir="ltr"><div>Just bringing this up again as I'm seeing some unexpected behavior on startup with this on Linux and wanted to know if it's still expected or something to investigate. I can look into it if this should be working.<br>
<br><br><span style="font-family:courier new,monospace">andrew@host:~$ lldb /usr/bin/python<br>Current executable set to '/usr/bin/python' (x86_64).<br>(lldb) r<br>Process 22284 launching<br>Process 22284 launched: '/usr/bin/python' (x86_64)<br>
Process 22284 stopped<br>Python 2.7.5+ (default, Feb 27 2014, 19:37:08)<br>[GCC 4.8.1] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> (lldb)<br>
^^^^^<br> I would expect to be at a Python prompt here, not lldb. Ctrl-C does nothing.<br><br>error: No auto repeat.<br>(lldb) process interrupt<br>Process 22284 stopped<br>* thread #1: tid = 22284, 0x00007f869ef0adc3 libc.so.6`__select + 19, name = 'python', stop reason = signal SIGSTOP<br>
frame #0: 0x00007f869ef0adc3 libc.so.6`__select + 19<br>libc.so.6`__select + 19:<br>-> 0x7f869ef0adc3: cmpq $-0xfff, %rax<br> 0x7f869ef0adc9: jae 0x7f869ef0adff ; __select + 79<br> 0x7f869ef0adcb: retq <br>
0x7f869ef0adcc: subq $0x8, %rsp<br>(lldb) c<br>Process 22284 resuming<br><br>>>> <br> ^^^^^<br> Now at a Python prompt, hitting Ctrl-C works as expected.<br><br>>>> Process 22284 stopped <br>
* thread #1: tid = 22284, 0x00007f869ef0adc3 libc.so.6`__select + 19, name = 'python', stop reason = signal SIGSTOP<br> frame #0: 0x00007f869ef0adc3 libc.so.6`__select + 19<br>libc.so.6`__select + 19: <br>-> 0x7f869ef0adc3: cmpq $-0xfff, %rax<br>
0x7f869ef0adc9: jae 0x7f869ef0adff ; __select + 79<br> 0x7f869ef0adcb: retq <br> 0x7f869ef0adcc: subq $0x8, %rsp<br>(lldb)</span><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Feb 24, 2014 at 8:07 AM, Matthew Gardiner <span dir="ltr"><<a href="mailto:mg11@csr.com" target="_blank">mg11@csr.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><a href="mailto:jingham@apple.com" target="_blank">jingham@apple.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Control-C is currently broken in TOT lldb. It pops the input reader for the program you are debugging off the stack, but doesn't interrupt it, leaving you in a kind of odd state...<br>
<br>
Greg's on this.<br>
<br>
Jim<br>
</blockquote></div>
Thanks for this, Jim.<br>
<br>
However, this leaves me a bit puzzled. Surely, if lldb *already* has a command intended to SIGTRAP the inferior (i.e. process interrupt), then why is Control-C broken? What is Control-C's intended purpose in lldb?<div>
<div><br>
<br>
Matt<br>
<br>
<br>
<br>
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom<br>
More information can be found at <a href="http://www.csr.com" target="_blank">www.csr.com</a>. Keep up to date with CSR on our technical blog, <a href="http://www.csr.com/blog" target="_blank">www.csr.com/blog</a>, CSR people blog, <a href="http://www.csr.com/people" target="_blank">www.csr.com/people</a>, YouTube, <a href="http://www.youtube.com/user/CSRplc" target="_blank">www.youtube.com/user/CSRplc</a>, Facebook, <a href="http://www.facebook.com/pages/CSR/191038434253534" target="_blank">www.facebook.com/pages/CSR/<u></u>191038434253534</a>, or follow us on Twitter at <a href="http://www.twitter.com/CSR_plc" target="_blank">www.twitter.com/CSR_plc</a>.<br>
New for 2014, you can now access the wide range of products powered by aptX at <a href="http://www.aptx.com" target="_blank">www.aptx.com</a>.<br>
______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br></div></div>