diff options
author | Jim Ingham <jingham@apple.com> | 2010-08-26 21:32:51 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-08-26 21:32:51 +0000 |
commit | 2976d00adbfb7c0c5612b86272bdcf1866ad7eab (patch) | |
tree | 0664fe0db5dadf60c083d282320e19d9332e4886 /lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl | |
parent | 17da935964094e95862546d8373c287914c6272f (diff) | |
download | bcm5719-llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.tar.gz bcm5719-llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.zip |
Change "Current" as in GetCurrentThread, GetCurrentStackFrame, etc, to "Selected" i.e. GetSelectedThread. Selected makes more sense, since these are set by some user action (a selection). I didn't change "CurrentProcess" since this is always controlled by the target, and a given target can only have one process, so it really can't be selected.
llvm-svn: 112221
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl')
-rwxr-xr-x | lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl b/lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl index 96b3115c912..e7feb51197a 100755 --- a/lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl +++ b/lldb/source/Plugins/Process/MacOSX-User/scripts/test-ProcessDebug.pl @@ -338,7 +338,7 @@ while ($pid) } elsif ( $pid_state == $lldb::eStateStopped ) { - my $tid = lldb::PDProcessGetCurrentThread ( $pid ); + my $tid = lldb::PDProcessGetSelectedThread ( $pid ); my $pc = lldb::PDThreadGetRegisterHexValueByName($pid, $tid, $lldb::PD_REGISTER_SET_ALL, "eip", 0); $pc != 0 and printf("pc = 0x%8.8x ", $pc); # my $sp = lldb::PDThreadGetRegisterHexValueByName($pid, $tid, $lldb::PD_REGISTER_SET_ALL, "esp", 0); |