summaryrefslogtreecommitdiff
path: root/include/lldb/Target/TargetList.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-04-18 08:33:37 +0000
committerGreg Clayton <gclayton@apple.com>2011-04-18 08:33:37 +0000
commitabe0fed36d83e1c37af9dae90c2d25db742b4515 (patch)
tree325f88c17f4b3c4408293493f34947122ab74cc9 /include/lldb/Target/TargetList.h
parente41494a9092e15192012a5e0a8a1ffd66c70b8bb (diff)
Centralized a lot of the status information for processes,
threads, and stack frame down in the lldb_private::Process, lldb_private::Thread, lldb_private::StackFrameList and the lldb_private::StackFrame classes. We had some command line commands that had duplicate versions of the process status output ("thread list" and "process status" for example). Removed the "file" command and placed it where it should have been: "target create". Made an alias for "file" to "target create" so we stay compatible with GDB commands. We can now have multple usable targets in lldb at the same time. This is nice for comparing two runs of a program or debugging more than one binary at the same time. The new command is "target select <target-idx>" and also to see a list of the current targets you can use the new "target list" command. The flow in a debug session can be: (lldb) target create /path/to/exe/a.out (lldb) breakpoint set --name main (lldb) run ... hit breakpoint (lldb) target create /bin/ls (lldb) run /tmp Process 36001 exited with status = 0 (0x00000000) (lldb) target list Current targets: target #0: /tmp/args/a.out ( arch=x86_64-apple-darwin, platform=localhost, pid=35999, state=stopped ) * target #1: /bin/ls ( arch=x86_64-apple-darwin, platform=localhost, pid=36001, state=exited ) (lldb) target select 0 Current targets: * target #0: /tmp/args/a.out ( arch=x86_64-apple-darwin, platform=localhost, pid=35999, state=stopped ) target #1: /bin/ls ( arch=x86_64-apple-darwin, platform=localhost, pid=36001, state=exited ) (lldb) bt * thread #1: tid = 0x2d03, 0x0000000100000b9a a.out`main + 42 at main.c:16, stop reason = breakpoint 1.1 frame #0: 0x0000000100000b9a a.out`main + 42 at main.c:16 frame #1: 0x0000000100000b64 a.out`start + 52 Above we created a target for "a.out" and ran and hit a breakpoint at "main". Then we created a new target for /bin/ls and ran it. Then we listed the targest and selected our original "a.out" program, so we showed two concurent debug sessions going on at the same time. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/lldb/Target/TargetList.h')
-rw-r--r--include/lldb/Target/TargetList.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/lldb/Target/TargetList.h b/include/lldb/Target/TargetList.h
index 6c21177ab..975684e0e 100644
--- a/include/lldb/Target/TargetList.h
+++ b/include/lldb/Target/TargetList.h
@@ -182,9 +182,6 @@ public:
uint32_t
SetSelectedTarget (Target *target);
- void
- SetSelectedTargetWithIndex (uint32_t idx);
-
lldb::TargetSP
GetSelectedTarget ();