summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2011-09-30 23:12:14 +0000
committerJason Molenda <jmolenda@apple.com>2011-09-30 23:12:14 +0000
commitf56c0137e2593cd580c7cb4bbc9d7adb13ea5c98 (patch)
tree28184fb1c7b19a9cf96568736c7e69011e11cfc6
parente4653a4b4ba4c3fd750cfe6d891c0ded4411cb81 (diff)
downloadbcm5719-llvm-f56c0137e2593cd580c7cb4bbc9d7adb13ea5c98.tar.gz
bcm5719-llvm-f56c0137e2593cd580c7cb4bbc9d7adb13ea5c98.zip
Small fix to "frame select" sans frame # feature added yesterday.
llvm-svn: 140901
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 288a5ea1b7d..b16589d2659 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -248,11 +248,13 @@ public:
const char *frame_idx_cstr = command.GetArgumentAtIndex(0);
frame_idx = Args::StringToUInt32 (frame_idx_cstr, UINT32_MAX, 0);
}
- if (command.GetArgumentCount() == 0)
+ else if (command.GetArgumentCount() == 0)
{
frame_idx = thread->GetSelectedFrameIndex ();
if (frame_idx == UINT32_MAX)
+ {
frame_idx = 0;
+ }
}
else
{
OpenPOWER on IntegriCloud