[Lldb-commits] [lldb] r124943 - in /lldb/trunk: include/lldb/Core/StreamFile.h include/lldb/Host/linux/Config.h include/lldb/Host/macosx/Config.h include/lldb/Host/mingw/Config.h source/Core/StreamFile.cpp

Greg Clayton gclayton at apple.com
Fri Feb 4 22:37:53 PST 2011


Author: gclayton
Date: Sat Feb  5 00:37:53 2011
New Revision: 124943

URL: http://llvm.org/viewvc/llvm-project?rev=124943&view=rev
Log:
Configuration support for setlinebuf support from Kirk Beitz.


Modified:
    lldb/trunk/include/lldb/Core/StreamFile.h
    lldb/trunk/include/lldb/Host/linux/Config.h
    lldb/trunk/include/lldb/Host/macosx/Config.h
    lldb/trunk/include/lldb/Host/mingw/Config.h
    lldb/trunk/source/Core/StreamFile.cpp

Modified: lldb/trunk/include/lldb/Core/StreamFile.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/StreamFile.h?rev=124943&r1=124942&r2=124943&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/StreamFile.h (original)
+++ lldb/trunk/include/lldb/Core/StreamFile.h Sat Feb  5 00:37:53 2011
@@ -61,9 +61,11 @@
 
     const char *
     GetFilePathname ();
-    
+
+#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
     void
     SetLineBuffered();
+#endif // #if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
 
 protected:
     //------------------------------------------------------------------

Modified: lldb/trunk/include/lldb/Host/linux/Config.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/linux/Config.h?rev=124943&r1=124942&r2=124943&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/linux/Config.h (original)
+++ lldb/trunk/include/lldb/Host/linux/Config.h Sat Feb  5 00:37:53 2011
@@ -17,6 +17,8 @@
 #ifndef liblldb_Platform_Config_h_
 #define liblldb_Platform_Config_h_
 
+#define LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED 1
+
 #define LLDB_CONFIG_TERMIOS_SUPPORTED 1
 
 #define LLDB_CONFIG_TILDE_RESOLVES_TO_USER 1

Modified: lldb/trunk/include/lldb/Host/macosx/Config.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/macosx/Config.h?rev=124943&r1=124942&r2=124943&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/macosx/Config.h (original)
+++ lldb/trunk/include/lldb/Host/macosx/Config.h Sat Feb  5 00:37:53 2011
@@ -17,9 +17,10 @@
 #ifndef liblldb_Platform_Config_h_
 #define liblldb_Platform_Config_h_
 
+#define LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED 1
+
 #define LLDB_CONFIG_TERMIOS_SUPPORTED 1
 
 #define LLDB_CONFIG_TILDE_RESOLVES_TO_USER 1
- 1
 
 #endif // #ifndef liblldb_Platform_Config_h_

Modified: lldb/trunk/include/lldb/Host/mingw/Config.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/mingw/Config.h?rev=124943&r1=124942&r2=124943&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/mingw/Config.h (original)
+++ lldb/trunk/include/lldb/Host/mingw/Config.h Sat Feb  5 00:37:53 2011
@@ -17,6 +17,8 @@
 #ifndef liblldb_Platform_Config_h_
 #define liblldb_Platform_Config_h_
 
+#define LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED 1
+
 #define LLDB_CONFIG_TERMIOS_SUPPORTED 0
 
 #define LLDB_CONFIG_TILDE_RESOLVES_TO_USER 0

Modified: lldb/trunk/source/Core/StreamFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/StreamFile.cpp?rev=124943&r1=124942&r2=124943&view=diff
==============================================================================
--- lldb/trunk/source/Core/StreamFile.cpp (original)
+++ lldb/trunk/source/Core/StreamFile.cpp Sat Feb  5 00:37:53 2011
@@ -94,6 +94,8 @@
     return m_file != NULL;
 }
 
+#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
+
 void
 StreamFile::SetLineBuffered ()
 {
@@ -101,6 +103,8 @@
         setlinebuf (m_file);
 }
 
+#endif // #if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
+
 void
 StreamFile::Flush ()
 {





More information about the lldb-commits mailing list