aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-db/Commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-db/Commands.cpp')
-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!";
}