summaryrefslogtreecommitdiff
path: root/tools/llvm-db
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-08 00:06:20 +0000
committerChris Lattner <sabre@nondot.org>2004-02-08 00:06:20 +0000
commitf2592ce201b7857d88f9e2ac31a2329a10f85562 (patch)
tree65f855bee41a2299b86302365957099a129d946c /tools/llvm-db
parente92e76446ed8eeb85312e772c09192c9d2b7c6a8 (diff)
downloadllvm-f2592ce201b7857d88f9e2ac31a2329a10f85562.tar.gz
llvm-f2592ce201b7857d88f9e2ac31a2329a10f85562.tar.bz2
llvm-f2592ce201b7857d88f9e2ac31a2329a10f85562.tar.xz
Minor change to breakpoint (lack of) support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-db')
-rw-r--r--tools/llvm-db/Commands.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp
index 577e6b9848..56dbd53526 100644
--- a/tools/llvm-db/Commands.cpp
+++ b/tools/llvm-db/Commands.cpp
@@ -489,7 +489,11 @@ void CLIDebugger::breakCommand(std::string &Options) {
throw "FIXME: breaking at the current location is not implemented yet!";
}
-
+ if (!File) File = CurrentFile;
+ if (File == 0)
+ throw "Unknown file to place breakpoint!";
+
+ std::cerr << "Break: " << File->getFilename() << ":" << LineNo << "\n";
throw "breakpoints not implemented yet!";
}