diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:36:52 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:36:52 +0000 |
commit | edf128a7fa90f2b0b7ee24741a04a7ae1ecd6f7e (patch) | |
tree | 3a2bd1b8b76e3380197d77448d1eebddf6259ce0 /lib/Debugger | |
parent | 23c6d2cb795ba0e7f132648ced6531a8abaa0d96 (diff) | |
download | external_llvm-edf128a7fa90f2b0b7ee24741a04a7ae1ecd6f7e.zip external_llvm-edf128a7fa90f2b0b7ee24741a04a7ae1ecd6f7e.tar.gz external_llvm-edf128a7fa90f2b0b7ee24741a04a7ae1ecd6f7e.tar.bz2 |
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Debugger')
-rw-r--r-- | lib/Debugger/Debugger.cpp | 12 | ||||
-rw-r--r-- | lib/Debugger/FDHandle.cpp | 8 | ||||
-rw-r--r-- | lib/Debugger/FDHandle.h | 4 | ||||
-rw-r--r-- | lib/Debugger/ProgramInfo.cpp | 20 | ||||
-rw-r--r-- | lib/Debugger/RuntimeInfo.cpp | 8 | ||||
-rw-r--r-- | lib/Debugger/SourceFile.cpp | 8 | ||||
-rw-r--r-- | lib/Debugger/SourceLanguage-CFamily.cpp | 6 | ||||
-rw-r--r-- | lib/Debugger/SourceLanguage-CPlusPlus.cpp | 6 | ||||
-rw-r--r-- | lib/Debugger/SourceLanguage-Unknown.cpp | 6 | ||||
-rw-r--r-- | lib/Debugger/SourceLanguage.cpp | 6 | ||||
-rw-r--r-- | lib/Debugger/UnixLocalInferiorProcess.cpp | 18 |
11 files changed, 51 insertions, 51 deletions
diff --git a/lib/Debugger/Debugger.cpp b/lib/Debugger/Debugger.cpp index 76cdfa2..c056b77 100644 --- a/lib/Debugger/Debugger.cpp +++ b/lib/Debugger/Debugger.cpp @@ -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 @@ Debugger::~Debugger() { } catch (const char *) { } catch (const std::string &) { } - + unloadProgram(); } @@ -47,7 +47,7 @@ getMaterializedModuleProvider(const std::string &Filename) { try { std::auto_ptr<ModuleProvider> Result(getBytecodeModuleProvider(Filename)); if (!Result.get()) return 0; - + Result->materializeModule(); return Result.release()->releaseModule(); } catch (...) { @@ -163,7 +163,7 @@ void Debugger::nextProgram() { // 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(); diff --git a/lib/Debugger/FDHandle.cpp b/lib/Debugger/FDHandle.cpp index c24bcb8..4f952f2 100644 --- a/lib/Debugger/FDHandle.cpp +++ b/lib/Debugger/FDHandle.cpp @@ -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 @@ using namespace llvm; // 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; diff --git a/lib/Debugger/FDHandle.h b/lib/Debugger/FDHandle.h index cf95874..56b5aa2 100644 --- a/lib/Debugger/FDHandle.h +++ b/lib/Debugger/FDHandle.h @@ -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 diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp index 17175c4..a702829 100644 --- a/lib/Debugger/ProgramInfo.cpp +++ b/lib/Debugger/ProgramInfo.cpp @@ -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 @@ static const GlobalVariable *getNextStopPoint(const Value *V, unsigned &LineNo, 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 @@ static const GlobalVariable *getNextStopPoint(const Value *V, unsigned &LineNo, 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 @@ SourceFileInfo::SourceFileInfo(const GlobalVariable *Desc, 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 @@ SourceFunctionInfo::SourceFunctionInfo(ProgramInfo &PI, 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 @@ const SourceFileInfo &ProgramInfo::getSourceFile(const std::string &Filename) { 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; diff --git a/lib/Debugger/RuntimeInfo.cpp b/lib/Debugger/RuntimeInfo.cpp index d1bc48b..5d45104 100644 --- a/lib/Debugger/RuntimeInfo.cpp +++ b/lib/Debugger/RuntimeInfo.cpp @@ -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 @@ StackFrame::StackFrame(RuntimeInfo &ri, void *ParentFrameID) : RI(ri), SourceInfo(0) { FrameID = RI.getInferiorProcess().getPreviousFrame(ParentFrameID); if (FrameID == 0) throw "Stack frame does not exist!"; - + // Compute lazily as needed. FunctionDesc = 0; } diff --git a/lib/Debugger/SourceFile.cpp b/lib/Debugger/SourceFile.cpp index 23144d9..222cdfa 100644 --- a/lib/Debugger/SourceFile.cpp +++ b/lib/Debugger/SourceFile.cpp @@ -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(); diff --git a/lib/Debugger/SourceLanguage-CFamily.cpp b/lib/Debugger/SourceLanguage-CFamily.cpp index 392c07c..468fe0c 100644 --- a/lib/Debugger/SourceLanguage-CFamily.cpp +++ b/lib/Debugger/SourceLanguage-CFamily.cpp @@ -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). // diff --git a/lib/Debugger/SourceLanguage-CPlusPlus.cpp b/lib/Debugger/SourceLanguage-CPlusPlus.cpp index 31e4fd4..b22163d 100644 --- a/lib/Debugger/SourceLanguage-CPlusPlus.cpp +++ b/lib/Debugger/SourceLanguage-CPlusPlus.cpp @@ -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. // //===----------------------------------------------------------------------===// diff --git a/lib/Debugger/SourceLanguage-Unknown.cpp b/lib/Debugger/SourceLanguage-Unknown.cpp index 806eb71..22376f8 100644 --- a/lib/Debugger/SourceLanguage-Unknown.cpp +++ b/lib/Debugger/SourceLanguage-Unknown.cpp @@ -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. diff --git a/lib/Debugger/SourceLanguage.cpp b/lib/Debugger/SourceLanguage.cpp index 7026844..8e4b4e0 100644 --- a/lib/Debugger/SourceLanguage.cpp +++ b/lib/Debugger/SourceLanguage.cpp @@ -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. // //===----------------------------------------------------------------------===// diff --git a/lib/Debugger/UnixLocalInferiorProcess.cpp b/lib/Debugger/UnixLocalInferiorProcess.cpp index c2ca164..1731bea 100644 --- a/lib/Debugger/UnixLocalInferiorProcess.cpp +++ b/lib/Debugger/UnixLocalInferiorProcess.cpp @@ -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 @@ namespace { // 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 @@ IP::IP(Module *M, const std::vector<std::string> &Arguments, // 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 @@ const GlobalVariable *IP::getSubprogramDesc(void *Frame) const { /// 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 @@ void IP::writeToChild(void *Buffer, unsigned Size) const { /// 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 @@ void IP::killChild() const { 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 @@ static void runChild(Module *M, const std::vector<std::string> &Arguments, 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 |