summaryrefslogtreecommitdiff
path: root/tools/llvm-db
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:27:04 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:27:04 +0000
commita27694d7aac1bfcec2b776df460719b4a165a79a (patch)
tree998a5c34c25ab843be89f44a848aab5a719e6603 /tools/llvm-db
parent07e6e56f57e8781a8d7bc601cc9034a3741d84c2 (diff)
downloadllvm-a27694d7aac1bfcec2b776df460719b4a165a79a.tar.gz
llvm-a27694d7aac1bfcec2b776df460719b4a165a79a.tar.bz2
llvm-a27694d7aac1bfcec2b776df460719b4a165a79a.tar.xz
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.cpp4
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();