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@cs.uiuc.edu Reporter: lab...@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.
_______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev