diff options
| author | Ilia K <ki.stfu@gmail.com> | 2015-05-07 06:51:46 +0000 |
|---|---|---|
| committer | Ilia K <ki.stfu@gmail.com> | 2015-05-07 06:51:46 +0000 |
| commit | d3da77e84ef9d90793e0bf5a748f79b79728506d (patch) | |
| tree | ce5b8bb6f4f9560e2dbc9570752cb0cc7ded923d /lldb/test/tools/lldb-mi/target/test_attach.cpp | |
| parent | 8913012ee97c8911b4bf95784f70ada3dd94ce44 (diff) | |
| download | bcm5719-llvm-d3da77e84ef9d90793e0bf5a748f79b79728506d.tar.gz bcm5719-llvm-d3da77e84ef9d90793e0bf5a748f79b79728506d.zip | |
Add -s/--source option support (MI)
Summary:
This patch adds -s/--source option to execute source file with prepared command.
For example:
```
$ cat start_script
target create ~/p/hello
process launch -s
continue
$ bin/lldb-mi -s start_script
(gdb)
target create ~/p/hello
Current executable set to '~/p/hello' (x86_64).
^done
(gdb)
process launch -s
=shlibs-added,shlib-info=[num="1",name="hello",dyld-addr="-",reason="dyld",path="/Users/IliaK/p/hello",loaded_addr="-",dsym-objpath="/Users/IliaK/p/hello.dSYM/Contents/Resources/DWARF/hello"]
Process 33289 launched: '/Users/IliaK/p/hello' (x86_64)
^done
(gdb)
continue
=thread-created,id="1",group-id="i1"
=thread-selected,id="1"
(gdb)
Process 33289 resuming
Process 33289 exited with status = 0 (0x00000000)
^done
```
Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi/
Reviewers: abidh
Reviewed By: abidh
Subscribers: lldb-commits, abidh
Differential Revision: http://reviews.llvm.org/D9278
llvm-svn: 236703
Diffstat (limited to 'lldb/test/tools/lldb-mi/target/test_attach.cpp')
0 files changed, 0 insertions, 0 deletions

