From f56c0137e2593cd580c7cb4bbc9d7adb13ea5c98 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 30 Sep 2011 23:12:14 +0000 Subject: [PATCH] Small fix to "frame select" sans frame # feature added yesterday. llvm-svn: 140901 --- lldb/source/Commands/CommandObjectFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 288a5ea1b7d6..b16589d2659a 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 {