Bug ID 27719
Summary No way to send stdin to remote process from command line
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter vince@nethacker.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified
When I connect to a remote process, I get the (lldb) prompt back after
launching a process that needs stdin
vharron@tifa:~/ll/tot/lldb/test$ ../../build/host/bin/lldb
(lldb) log enable -Tpn -f /tmp/packet.log gdb-remote all
(lldb) log enable -Tpn -f /tmp/lldb.log lldb all
(lldb) platform select remote-linux
Platform: remote-linux
Connected: no
(lldb) platform connect connect://192.168.100.132:5432
Platform: remote-linux
Triple: x86_64--linux-gnu
OS Version: 3.13.0 (3.13.0-32-generic)
Kernel: #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
Hostname: ubuntu
Connected: yes
WorkingDir: /home/vharron/host
(lldb) platform settings --working-dir /tmp
option[4] --user-write has a short option -w that conflicts with option[0]
--working-dir, short option won't be used for --user-write
(lldb) file ~/ll/tot/lldb/test/python_api/process/io/process_io
Current executable set to '~/ll/tot/lldb/test/python_api/process/io/process_io'
(x86_64).
(lldb) process launch -e /tmp/error.txt
Process 6436 launched:
'/usr/local/google/home/vharron/ll/tot/lldb/test/python_api/process/io/process_io'
(x86_64)
Hello world.
(lldb)
error: No auto repeat.
(lldb) kill
Process 6436 stopped
Process 6436 exited with status = 9 (0x00000009)
(lldb) process launch
Process 6460 launched:
'/usr/local/google/home/vharron/ll/tot/lldb/test/python_api/process/io/process_io'
(x86_64)
Hello world.
(lldb)
We also need a test to protect this functionality once implemented.