X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fllvm-db%2FCommands.cpp;h=ffebdd5d58f4bedfb0d2d304ed7625c9b6694d8f;hb=5a377cb27bb65ea608b63716454c9ae214ef81c9;hp=ae6d97ac9cef5112aa2a42a27e4fb5fe393c6ba6;hpb=21c62da287237d39d0d95004881ea4baae3be6da;p=oota-llvm.git diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp index ae6d97ac9ce..ffebdd5d58f 100644 --- a/tools/llvm-db/Commands.cpp +++ b/tools/llvm-db/Commands.cpp @@ -21,6 +21,7 @@ #include "llvm/Support/FileUtilities.h" #include "llvm/ADT/StringExtras.h" #include +#include using namespace llvm; /// getCurrentLanguage - Return the current source language that the user is @@ -448,11 +449,12 @@ void CLIDebugger::downCommand(std::string &Options) { unsigned CurFrame = RI.getCurrentFrameIdx(); // Check to see if we can go up the specified number of frames. - if (CurFrame < Num) + if (CurFrame < Num) { if (Num == 1) throw "Bottom (i.e., innermost) frame selected; you cannot go down."; else throw "Cannot go down " + utostr(Num) + " frames!"; + } RI.setCurrentFrameIdx(CurFrame-Num); printProgramLocation();