[llvm-commits] CVS: llvm/lib/Debugger/Debugger.cpp FDHandle.cpp FDHandle.h ProgramInfo.cpp RuntimeInfo.cpp SourceFile.cpp SourceLanguage-CFamily.cpp SourceLanguage-CPlusPlus.cpp SourceLanguage-Unknown.cpp SourceLanguage.cpp UnixLocalInferiorProcess.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Apr 21 15:36:32 PDT 2005



Changes in directory llvm/lib/Debugger:

Debugger.cpp updated: 1.3 -> 1.4
FDHandle.cpp updated: 1.2 -> 1.3
FDHandle.h updated: 1.1 -> 1.2
ProgramInfo.cpp updated: 1.9 -> 1.10
RuntimeInfo.cpp updated: 1.1 -> 1.2
SourceFile.cpp updated: 1.6 -> 1.7
SourceLanguage-CFamily.cpp updated: 1.1 -> 1.2
SourceLanguage-CPlusPlus.cpp updated: 1.1 -> 1.2
SourceLanguage-Unknown.cpp updated: 1.2 -> 1.3
SourceLanguage.cpp updated: 1.1 -> 1.2
UnixLocalInferiorProcess.cpp updated: 1.7 -> 1.8
---
Log message:

Remove trailing whitespace


---
Diffs of the changes:  (+51 -51)

 Debugger.cpp                 |   12 ++++++------
 FDHandle.cpp                 |    8 ++++----
 FDHandle.h                   |    4 ++--
 ProgramInfo.cpp              |   20 ++++++++++----------
 RuntimeInfo.cpp              |    8 ++++----
 SourceFile.cpp               |    8 ++++----
 SourceLanguage-CFamily.cpp   |    6 +++---
 SourceLanguage-CPlusPlus.cpp |    6 +++---
 SourceLanguage-Unknown.cpp   |    6 +++---
 SourceLanguage.cpp           |    6 +++---
 UnixLocalInferiorProcess.cpp |   18 +++++++++---------
 11 files changed, 51 insertions(+), 51 deletions(-)


Index: llvm/lib/Debugger/Debugger.cpp
diff -u llvm/lib/Debugger/Debugger.cpp:1.3 llvm/lib/Debugger/Debugger.cpp:1.4
--- llvm/lib/Debugger/Debugger.cpp:1.3	Wed Sep  1 17:55:35 2004
+++ llvm/lib/Debugger/Debugger.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- Debugger.cpp - LLVM debugger library implementation ---------------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file contains the main implementation of the LLVM debugger library.
 //
 //===----------------------------------------------------------------------===//
@@ -32,7 +32,7 @@
   } catch (const char *) {
   } catch (const std::string &) {
   }
-  
+
   unloadProgram();
 }
 
@@ -47,7 +47,7 @@
   try {
     std::auto_ptr<ModuleProvider> Result(getBytecodeModuleProvider(Filename));
     if (!Result.get()) return 0;
-  
+
     Result->materializeModule();
     return Result.release()->releaseModule();
   } catch (...) {
@@ -163,7 +163,7 @@
 
     // Don't trust the current frame: get the caller frame.
     void *ParentFrame  = Process->getPreviousFrame(CurrentFrame);
-    
+
     // Ok, we have some information, run the program one step.
     Process->stepProgram();
 


Index: llvm/lib/Debugger/FDHandle.cpp
diff -u llvm/lib/Debugger/FDHandle.cpp:1.2 llvm/lib/Debugger/FDHandle.cpp:1.3
--- llvm/lib/Debugger/FDHandle.cpp:1.2	Thu Dec 23 15:16:46 2004
+++ llvm/lib/Debugger/FDHandle.cpp	Thu Apr 21 17:36:21 2005
@@ -1,10 +1,10 @@
 //===- lib/Debugger/FDHandle.cpp - File Descriptor Handle -----------------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
 //
 // This file implements a class for ensuring that Unix file handles get closed.
@@ -21,12 +21,12 @@
 //
 
 FDHandle::~FDHandle() throw() {
-  if (FD != -1) 
+  if (FD != -1)
     ::close(FD);
 }
 
 FDHandle &FDHandle::operator=(int fd) throw() {
-  if (FD != -1) 
+  if (FD != -1)
     ::close(FD);
   FD = fd;
   return *this;


Index: llvm/lib/Debugger/FDHandle.h
diff -u llvm/lib/Debugger/FDHandle.h:1.1 llvm/lib/Debugger/FDHandle.h:1.2
--- llvm/lib/Debugger/FDHandle.h:1.1	Wed Dec 22 04:24:55 2004
+++ llvm/lib/Debugger/FDHandle.h	Thu Apr 21 17:36:21 2005
@@ -1,10 +1,10 @@
 //===- lib/Debugger/FDHandle.h - File Descriptor Handle ---------*- C++ -*-===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
 //
 // This file defines a family of utility functions which are useful for doing


Index: llvm/lib/Debugger/ProgramInfo.cpp
diff -u llvm/lib/Debugger/ProgramInfo.cpp:1.9 llvm/lib/Debugger/ProgramInfo.cpp:1.10
--- llvm/lib/Debugger/ProgramInfo.cpp:1.9	Tue Dec 14 19:51:56 2004
+++ llvm/lib/Debugger/ProgramInfo.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- ProgramInfo.cpp - Compute and cache info about a program ----------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the ProgramInfo and related classes, by sorting through
 // the loaded Module.
 //
@@ -107,13 +107,13 @@
           if (const ConstantInt *C = dyn_cast<ConstantInt>(CI->getOperand(3)))
             CurColNo = C->getRawValue();
           const Value *Op = CI->getOperand(4);
-          
+
           if ((CurDesc = dyn_cast<GlobalVariable>(Op)) &&
               (LineNo < LastLineNo ||
                (LineNo == LastLineNo && ColNo < LastColNo))) {
             LastDesc = CurDesc;
             LastLineNo = CurLineNo;
-            LastColNo = CurColNo;            
+            LastColNo = CurColNo;
           }
           ShouldRecurse = false;
         }
@@ -128,12 +128,12 @@
         if (LineNo < LastLineNo || (LineNo == LastLineNo && ColNo < LastColNo)){
           LastDesc = GV;
           LastLineNo = CurLineNo;
-          LastColNo = CurColNo;            
+          LastColNo = CurColNo;
         }
       }
     }
   }
-  
+
   if (LastDesc) {
     LineNo = LastLineNo != ~0U ? LastLineNo : 0;
     ColNo  = LastColNo  != ~0U ? LastColNo : 0;
@@ -157,7 +157,7 @@
       if (CS->getNumOperands() > 4) {
         if (ConstantUInt *CUI = dyn_cast<ConstantUInt>(CS->getOperand(1)))
           Version = CUI->getValue();
-        
+
         BaseName  = getStringValue(CS->getOperand(3));
         Directory = getStringValue(CS->getOperand(4));
       }
@@ -194,7 +194,7 @@
     if (ConstantStruct *CS = dyn_cast<ConstantStruct>(Desc->getInitializer()))
       if (CS->getNumOperands() > 2) {
         // Entry #1 is the file descriptor.
-        if (const GlobalVariable *GV = 
+        if (const GlobalVariable *GV =
             dyn_cast<GlobalVariable>(CS->getOperand(1)))
           SourceFile = &PI.getSourceFile(GV);
 
@@ -338,7 +338,7 @@
   std::multimap<std::string, SourceFileInfo*>::const_iterator Start, End;
   getSourceFiles();
   tie(Start, End) = SourceFileIndex.equal_range(Filename);
-  
+
   if (Start == End) throw "Could not find source file '" + Filename + "'!";
   const SourceFileInfo &SFI = *Start->second;
   ++Start;


Index: llvm/lib/Debugger/RuntimeInfo.cpp
diff -u llvm/lib/Debugger/RuntimeInfo.cpp:1.1 llvm/lib/Debugger/RuntimeInfo.cpp:1.2
--- llvm/lib/Debugger/RuntimeInfo.cpp:1.1	Sun Jan  4 23:25:10 2004
+++ llvm/lib/Debugger/RuntimeInfo.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- RuntimeInfo.cpp - Compute and cache info about running program ----===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the RuntimeInfo and related classes, by querying and
 // cachine information from the running inferior process.
 //
@@ -24,7 +24,7 @@
   : RI(ri), SourceInfo(0) {
   FrameID = RI.getInferiorProcess().getPreviousFrame(ParentFrameID);
   if (FrameID == 0) throw "Stack frame does not exist!";
-  
+
   // Compute lazily as needed.
   FunctionDesc = 0;
 }


Index: llvm/lib/Debugger/SourceFile.cpp
diff -u llvm/lib/Debugger/SourceFile.cpp:1.6 llvm/lib/Debugger/SourceFile.cpp:1.7
--- llvm/lib/Debugger/SourceFile.cpp:1.6	Mon Dec 20 18:22:51 2004
+++ llvm/lib/Debugger/SourceFile.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- SourceFile.cpp - SourceFile implementation for the debugger -------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the SourceFile class for the LLVM debugger.
 //
 //===----------------------------------------------------------------------===//
@@ -16,7 +16,7 @@
 
 using namespace llvm;
 
-/// readFile - Load Filename 
+/// readFile - Load Filename
 ///
 void SourceFile::readFile() {
   File.map();


Index: llvm/lib/Debugger/SourceLanguage-CFamily.cpp
diff -u llvm/lib/Debugger/SourceLanguage-CFamily.cpp:1.1 llvm/lib/Debugger/SourceLanguage-CFamily.cpp:1.2
--- llvm/lib/Debugger/SourceLanguage-CFamily.cpp:1.1	Sun Jan  4 23:25:10 2004
+++ llvm/lib/Debugger/SourceLanguage-CFamily.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- SourceLanguage-CFamily.cpp - C family SourceLanguage impl ---------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the SourceLanguage class for the C family of languages
 // (K&R C, C89, C99, etc).
 //


Index: llvm/lib/Debugger/SourceLanguage-CPlusPlus.cpp
diff -u llvm/lib/Debugger/SourceLanguage-CPlusPlus.cpp:1.1 llvm/lib/Debugger/SourceLanguage-CPlusPlus.cpp:1.2
--- llvm/lib/Debugger/SourceLanguage-CPlusPlus.cpp:1.1	Sun Jan  4 23:25:10 2004
+++ llvm/lib/Debugger/SourceLanguage-CPlusPlus.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- SourceLanguage-CPlusPlus.cpp - C++ SourceLanguage impl ------------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the SourceLanguage class for the C++ language.
 //
 //===----------------------------------------------------------------------===//


Index: llvm/lib/Debugger/SourceLanguage-Unknown.cpp
diff -u llvm/lib/Debugger/SourceLanguage-Unknown.cpp:1.2 llvm/lib/Debugger/SourceLanguage-Unknown.cpp:1.3
--- llvm/lib/Debugger/SourceLanguage-Unknown.cpp:1.2	Sun Jan  4 23:45:25 2004
+++ llvm/lib/Debugger/SourceLanguage-Unknown.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- SourceLanguage-Unknown.cpp - Implement itf for unknown languages --===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // If the LLVM debugger does not have a module for a particular language, it
 // falls back on using this one to perform the source-language interface.  This
 // interface is not wonderful, but it gets the job done.


Index: llvm/lib/Debugger/SourceLanguage.cpp
diff -u llvm/lib/Debugger/SourceLanguage.cpp:1.1 llvm/lib/Debugger/SourceLanguage.cpp:1.2
--- llvm/lib/Debugger/SourceLanguage.cpp:1.1	Sun Jan  4 23:25:10 2004
+++ llvm/lib/Debugger/SourceLanguage.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- SourceLanguage.cpp - Implement the SourceLanguage class -----------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the SourceLanguage class.
 //
 //===----------------------------------------------------------------------===//


Index: llvm/lib/Debugger/UnixLocalInferiorProcess.cpp
diff -u llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:1.7 llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:1.8
--- llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:1.7	Wed Dec 22 04:25:06 2004
+++ llvm/lib/Debugger/UnixLocalInferiorProcess.cpp	Thu Apr 21 17:36:21 2005
@@ -1,12 +1,12 @@
 //===-- UnixLocalInferiorProcess.cpp - A Local process on a Unixy system --===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
 // This file was developed by the LLVM research group and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file provides one implementation of the InferiorProcess class, which is
 // designed to be used on unixy systems (those that support pipe, fork, exec,
 // and signals).
@@ -94,7 +94,7 @@
 
     // FinishProgram: FrameDesc*->char - This command causes the program to
     // continue execution until the specified function frame returns.
-    FinishProgram, 
+    FinishProgram,
 
     // ContProgram: void->char - This command causes the program to continue
     // execution, stopping at some point in the future.
@@ -217,7 +217,7 @@
 
   // Start the child running...
   startChild(M, Arguments, envp);
-  
+
   // Okay, we created the program and it is off and running.  Wait for it to
   // stop now.
   try {
@@ -325,7 +325,7 @@
 
 /// getFrameLocation - This method returns the source location where each stack
 /// frame is stopped.
-void IP::getFrameLocation(void *Frame, unsigned &LineNo, unsigned &ColNo, 
+void IP::getFrameLocation(void *Frame, unsigned &LineNo, unsigned &ColNo,
                           const GlobalVariable *&SourceDesc) const {
   sendCommand(GetFrameLocation, &Frame, sizeof(Frame));
   LocationToken Loc;
@@ -419,7 +419,7 @@
 /// died, otherwise it just returns the exit code if it had to be killed.
 void IP::killChild() const {
   assert(ChildPID != 0 && "Child has already been reaped!");
-  
+
   // If the process terminated on its own accord, closing the pipe file
   // descriptors, we will get here.  Check to see if the process has already
   // died in this manner, gracefully.
@@ -456,7 +456,7 @@
       throw InferiorProcessDead(WTERMSIG(Status));
     throw InferiorProcessDead(-1);
   }
-  
+
   // Otherwise, the child exists and has not yet been killed.
   if (kill(ChildPID, SIGKILL) < 0)
     throw "Error killing child process!";
@@ -905,7 +905,7 @@
     ExecutionEngine::create(new ExistingModuleProvider(M), false,
                             new DebuggerIntrinsicLowering());
   assert(EE && "Couldn't create an ExecutionEngine, not even an interpreter?");
-  
+
   // Call the main function from M as if its signature were:
   //   int main (int argc, char **argv, const char **envp)
   // using the contents of Args to determine argc & argv, and the contents of






More information about the llvm-commits mailing list