From: Chris Lattner Date: Sun, 8 Feb 2004 00:06:20 +0000 (+0000) Subject: Minor change to breakpoint (lack of) support X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f2592ce201b7857d88f9e2ac31a2329a10f85562;p=oota-llvm.git Minor change to breakpoint (lack of) support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11169 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp index 577e6b9848b..56dbd53526c 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!"; }