diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:27:04 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:27:04 +0000 |
commit | a27694d7aac1bfcec2b776df460719b4a165a79a (patch) | |
tree | 998a5c34c25ab843be89f44a848aab5a719e6603 /tools/llvm-db | |
parent | 07e6e56f57e8781a8d7bc601cc9034a3741d84c2 (diff) |
And final pack of warnings silencing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-db')
-rw-r--r-- | tools/llvm-db/Commands.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp index ae6d97ac9c..ffebdd5d58 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 <iostream> +#include <cstdlib> 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(); |