[Lldb-commits] [lldb] r206468 - elf-core: Strip trailing whitespace

Ed Maste emaste at freebsd.org
Thu Apr 17 06:06:49 PDT 2014


Author: emaste
Date: Thu Apr 17 08:06:49 2014
New Revision: 206468

URL: http://llvm.org/viewvc/llvm-project?rev=206468&view=rev
Log:
elf-core: Strip trailing whitespace

Modified:
    lldb/trunk/source/Plugins/Process/elf-core/Makefile
    lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.cpp
    lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.h
    lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.cpp
    lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.h

Modified: lldb/trunk/source/Plugins/Process/elf-core/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/Makefile?rev=206468&r1=206467&r2=206468&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/Makefile (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/Makefile Thu Apr 17 08:06:49 2014
@@ -1,10 +1,10 @@
 ##===- source/Plugins/Process/elf-core/Makefile -----------*- Makefile -*-===##
-# 
+#
 #                     The LLVM Compiler Infrastructure
 #
 # This file is distributed under the University of Illinois Open Source
 # License. See LICENSE.TXT for details.
-# 
+#
 ##===----------------------------------------------------------------------===##
 
 LLDB_LEVEL := ../../../..

Modified: lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.cpp?rev=206468&r1=206467&r2=206468&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.cpp (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.cpp Thu Apr 17 08:06:49 2014
@@ -60,7 +60,7 @@ ProcessElfCore::CreateInstance (Target &
     {
         // Read enough data for a ELF32 header or ELF64 header
         const size_t header_size = sizeof(llvm::ELF::Elf64_Ehdr);
-        
+
         lldb::DataBufferSP data_sp (crash_file->ReadFileContents(0, header_size));
         if (data_sp->GetByteSize() == header_size)
         {
@@ -84,7 +84,7 @@ ProcessElfCore::CanDebug(Target &target,
     if (!m_core_module_sp && m_core_file.Exists())
     {
         ModuleSpec core_module_spec(m_core_file, target.GetArchitecture());
-        Error error (ModuleList::GetSharedModule (core_module_spec, m_core_module_sp, 
+        Error error (ModuleList::GetSharedModule (core_module_spec, m_core_module_sp,
                                                   NULL, NULL, NULL));
         if (m_core_module_sp)
         {
@@ -172,21 +172,21 @@ ProcessElfCore::DoLoadCore ()
     Error error;
     if (!m_core_module_sp)
     {
-        error.SetErrorString ("invalid core module");   
+        error.SetErrorString ("invalid core module");
         return error;
     }
 
     ObjectFileELF *core = (ObjectFileELF *)(m_core_module_sp->GetObjectFile());
     if (core == NULL)
     {
-        error.SetErrorString ("invalid core object file");   
+        error.SetErrorString ("invalid core object file");
         return error;
     }
 
     const uint32_t num_segments = core->GetProgramHeaderCount();
     if (num_segments == 0)
     {
-        error.SetErrorString ("core file has no sections");   
+        error.SetErrorString ("core file has no sections");
         return error;
     }
 
@@ -227,7 +227,7 @@ ProcessElfCore::DoLoadCore ()
     // it to match the core file which is always single arch.
     ArchSpec arch (m_core_module_sp->GetArchitecture());
     if (arch.IsValid())
-        m_target.SetArchitecture(arch);            
+        m_target.SetArchitecture(arch);
 
     return error;
 }
@@ -348,7 +348,7 @@ void
 ProcessElfCore::Initialize()
 {
     static bool g_initialized = false;
-    
+
     if (g_initialized == false)
     {
         g_initialized = true;
@@ -413,7 +413,7 @@ ParseFreeBSDPrStatus(ThreadData &thread_
     offset += 4;        // pr_pid
     if (lp64)
         offset += 4;
-    
+
     size_t len = data.GetByteSize() - offset;
     thread_data.gpregset = DataExtractor(data, offset, len);
 }
@@ -439,7 +439,7 @@ ParseFreeBSDThrMisc(ThreadData &thread_d
 ///    a) Each thread context(2 or more NOTE entries) contained in its own segment (PT_NOTE)
 ///    b) All thread context is stored in a single segment(PT_NOTE).
 ///        This case is little tricker since while parsing we have to find where the
-///        new thread starts. The current implementation marks beginning of 
+///        new thread starts. The current implementation marks beginning of
 ///        new thread when it finds NT_PRSTATUS or NT_PRPSINFO NOTE entry.
 ///    For case (b) there may be either one NT_PRPSINFO per thread, or a single
 ///    one that applies to all threads (depending on the platform type).

Modified: lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.h?rev=206468&r1=206467&r2=206468&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.h (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/ProcessElfCore.h Thu Apr 17 08:06:49 2014
@@ -37,45 +37,45 @@ public:
     // Constructors and Destructors
     //------------------------------------------------------------------
     static lldb::ProcessSP
-    CreateInstance (lldb_private::Target& target, 
-                    lldb_private::Listener &listener, 
+    CreateInstance (lldb_private::Target& target,
+                    lldb_private::Listener &listener,
                     const lldb_private::FileSpec *crash_file_path);
-    
+
     static void
     Initialize();
-    
+
     static void
     Terminate();
-    
+
     static lldb_private::ConstString
     GetPluginNameStatic();
-    
+
     static const char *
     GetPluginDescriptionStatic();
-    
+
     //------------------------------------------------------------------
     // Constructors and Destructors
     //------------------------------------------------------------------
-    ProcessElfCore(lldb_private::Target& target, 
+    ProcessElfCore(lldb_private::Target& target,
                     lldb_private::Listener &listener,
                     const lldb_private::FileSpec &core_file);
-    
+
     virtual
     ~ProcessElfCore();
-    
+
     //------------------------------------------------------------------
     // Check if a given Process
     //------------------------------------------------------------------
     virtual bool
     CanDebug (lldb_private::Target &target,
               bool plugin_specified_by_name);
-    
+
     //------------------------------------------------------------------
     // Creating a new process, or attaching to an existing one
     //------------------------------------------------------------------
     virtual lldb_private::Error
     DoLoadCore ();
-    
+
     virtual lldb_private::DynamicLoader *
     GetDynamicLoader ();
 
@@ -84,19 +84,19 @@ public:
     //------------------------------------------------------------------
     virtual lldb_private::ConstString
     GetPluginName();
-    
+
     virtual uint32_t
     GetPluginVersion();
-    
+
     //------------------------------------------------------------------
     // Process Control
-    //------------------------------------------------------------------    
+    //------------------------------------------------------------------
     virtual lldb_private::Error
     DoDestroy ();
-    
+
     virtual void
     RefreshStateAfterStop();
-    
+
     //------------------------------------------------------------------
     // Process Queries
     //------------------------------------------------------------------
@@ -108,10 +108,10 @@ public:
     //------------------------------------------------------------------
     virtual size_t
     ReadMemory (lldb::addr_t addr, void *buf, size_t size, lldb_private::Error &error);
-    
+
     virtual size_t
     DoReadMemory (lldb::addr_t addr, void *buf, size_t size, lldb_private::Error &error);
-    
+
     virtual lldb::addr_t
     GetImageInfoAddress ();
 
@@ -125,11 +125,11 @@ public:
 protected:
     void
     Clear ( );
-    
+
     virtual bool
-    UpdateThreadList (lldb_private::ThreadList &old_thread_list, 
+    UpdateThreadList (lldb_private::ThreadList &old_thread_list,
                       lldb_private::ThreadList &new_thread_list);
-   
+
 private:
     //------------------------------------------------------------------
     // For ProcessElfCore only

Modified: lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.cpp?rev=206468&r1=206467&r2=206468&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.cpp (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.cpp Thu Apr 17 08:06:49 2014
@@ -108,7 +108,7 @@ ThreadElfCore::CreateRegisterContextForF
                 }
                 break;
             }
- 
+
             case llvm::Triple::Linux:
             {
                 switch (arch.GetMachine())

Modified: lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.h?rev=206468&r1=206467&r2=206468&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.h (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/ThreadElfCore.h Thu Apr 17 08:06:49 2014
@@ -40,7 +40,7 @@ struct ELFLinuxPrStatus
     int32_t         si_errno;
 
     int16_t         pr_cursig;
-    
+
     uint64_t        pr_sigpend;
     uint64_t        pr_sighold;
 





More information about the lldb-commits mailing list