[Lldb-commits] [lldb] r140901 - /lldb/trunk/source/Commands/CommandObjectFrame.cpp

Jason Molenda jmolenda at apple.com
Fri Sep 30 16:12:15 PDT 2011


Author: jmolenda
Date: Fri Sep 30 18:12:14 2011
New Revision: 140901

URL: http://llvm.org/viewvc/llvm-project?rev=140901&view=rev
Log:
Small fix to "frame select" sans frame # feature added yesterday.

Modified:
    lldb/trunk/source/Commands/CommandObjectFrame.cpp

Modified: lldb/trunk/source/Commands/CommandObjectFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectFrame.cpp?rev=140901&r1=140900&r2=140901&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectFrame.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectFrame.cpp Fri Sep 30 18:12:14 2011
@@ -248,11 +248,13 @@
                     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
                 {





More information about the lldb-commits mailing list