[lldb-dev] [Bug 23371] New: Setting up stdio redirection does not work if inferior started in synchronous mode (-o run)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 29 03:54:54 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23371
Bug ID: 23371
Summary: Setting up stdio redirection does not work if inferior
started in synchronous mode (-o run)
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at cs.uiuc.edu
Reporter: labath at google.com
Classification: Unclassified
I think the example says it all:
$ cat a.c
#include <stdio.h>
int main()
{
int i;
printf("enter a number: ");
scanf("%d", &i);
printf("got %d\n", i);
return 0;
}
$ gcc a.c
$ lldb a.out -o run
(lldb) target create "a.out"
Current executable set to 'a.out' (x86_64).
(lldb) run
enter a number: 47
42
...
^CProcess 6656 stopped
* thread #1: tid = 6656, 0x00007ffff7b00810 libc.so.6`__GI___read + 16, name =
'a.out', stop reason = signal SIGSTOP
frame #0: 0x00007ffff7b00810 libc.so.6`__GI___read + 16
libc.so.6`__GI___read:
-> 0x7ffff7b00810 <+16>: cmpq $-0xfff, %rax
0x7ffff7b00816 <+22>: jae 0x7ffff7b00849 ; <+73>
0x7ffff7b00818 <+24>: retq
libc.so.6`???:
0x7ffff7b00819 <+25>: subq $0x8, %rsp
Process 6656 launched: '/usr/local/google/home/labath/ll/build/dbg/a.out'
(x86_64)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150429/22fbbb71/attachment.html>
More information about the lldb-dev
mailing list