[llvm-commits] CVS: llvm/tools/llvm-db/Commands.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Feb 7 18:07:01 PST 2004


Changes in directory llvm/tools/llvm-db:

Commands.cpp updated: 1.3 -> 1.4

---
Log message:

Minor change to breakpoint (lack of) support


---
Diffs of the changes:  (+5 -1)

Index: llvm/tools/llvm-db/Commands.cpp
diff -u llvm/tools/llvm-db/Commands.cpp:1.3 llvm/tools/llvm-db/Commands.cpp:1.4
--- llvm/tools/llvm-db/Commands.cpp:1.3	Tue Jan  6 17:46:17 2004
+++ llvm/tools/llvm-db/Commands.cpp	Sat Feb  7 18:06:20 2004
@@ -489,7 +489,11 @@
     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!";
 }





More information about the llvm-commits mailing list