parent
							
								
									5fa3614849
								
							
						
					
					
						commit
						891d56baec
					
				| 
						 | 
					@ -37,8 +37,8 @@ public:
 | 
				
			||||||
        eFileTypePipe,
 | 
					        eFileTypePipe,
 | 
				
			||||||
        eFileTypeRegular,
 | 
					        eFileTypeRegular,
 | 
				
			||||||
        eFileTypeSocket,
 | 
					        eFileTypeSocket,
 | 
				
			||||||
        eFileTypeSymbolicLink,
 | 
					        eFileTypeSymbolicLink
 | 
				
			||||||
    };
 | 
					    } FileType;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    FileSpec();
 | 
					    FileSpec();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -351,7 +351,7 @@ public:
 | 
				
			||||||
    ///
 | 
					    ///
 | 
				
			||||||
    /// @param[in] length
 | 
					    /// @param[in] length
 | 
				
			||||||
    ///     The size in bytes that should be mapped starting \a offset
 | 
					    ///     The size in bytes that should be mapped starting \a offset
 | 
				
			||||||
    ///     bytes into the file. If \a length is \c SIZE_T_MAX, map
 | 
					    ///     bytes into the file. If \a length is \c SIZE_MAX, map
 | 
				
			||||||
    ///     as many bytes as possible.
 | 
					    ///     as many bytes as possible.
 | 
				
			||||||
    ///
 | 
					    ///
 | 
				
			||||||
    /// @return
 | 
					    /// @return
 | 
				
			||||||
| 
						 | 
					@ -360,7 +360,7 @@ public:
 | 
				
			||||||
    ///     pointer must be checked prior to using it.
 | 
					    ///     pointer must be checked prior to using it.
 | 
				
			||||||
    //------------------------------------------------------------------
 | 
					    //------------------------------------------------------------------
 | 
				
			||||||
    lldb::DataBufferSP
 | 
					    lldb::DataBufferSP
 | 
				
			||||||
    MemoryMapFileContents (off_t offset = 0, size_t length = SIZE_T_MAX) const;
 | 
					    MemoryMapFileContents (off_t offset = 0, size_t length = SIZE_MAX) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //------------------------------------------------------------------
 | 
					    //------------------------------------------------------------------
 | 
				
			||||||
    /// Read part of, or the entire contents of, a file into a heap based data buffer.
 | 
					    /// Read part of, or the entire contents of, a file into a heap based data buffer.
 | 
				
			||||||
| 
						 | 
					@ -381,7 +381,7 @@ public:
 | 
				
			||||||
    ///
 | 
					    ///
 | 
				
			||||||
    /// @param[in] length
 | 
					    /// @param[in] length
 | 
				
			||||||
    ///     The size in bytes that should be mapped starting \a offset
 | 
					    ///     The size in bytes that should be mapped starting \a offset
 | 
				
			||||||
    ///     bytes into the file. If \a length is \c SIZE_T_MAX, map
 | 
					    ///     bytes into the file. If \a length is \c SIZE_MAX, map
 | 
				
			||||||
    ///     as many bytes as possible.
 | 
					    ///     as many bytes as possible.
 | 
				
			||||||
    ///
 | 
					    ///
 | 
				
			||||||
    /// @return
 | 
					    /// @return
 | 
				
			||||||
| 
						 | 
					@ -390,7 +390,7 @@ public:
 | 
				
			||||||
    ///     pointer must be checked prior to using it.
 | 
					    ///     pointer must be checked prior to using it.
 | 
				
			||||||
    //------------------------------------------------------------------
 | 
					    //------------------------------------------------------------------
 | 
				
			||||||
    lldb::DataBufferSP
 | 
					    lldb::DataBufferSP
 | 
				
			||||||
    ReadFileContents (off_t offset = 0, size_t length = SIZE_T_MAX) const;
 | 
					    ReadFileContents (off_t offset = 0, size_t length = SIZE_MAX) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //------------------------------------------------------------------
 | 
					    //------------------------------------------------------------------
 | 
				
			||||||
    /// Change the file specificed with a new path.
 | 
					    /// Change the file specificed with a new path.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@
 | 
				
			||||||
#define liblldb_STLUtils_h_
 | 
					#define liblldb_STLUtils_h_
 | 
				
			||||||
#if defined(__cplusplus)
 | 
					#if defined(__cplusplus)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <ext/hash_fun.h>
 | 
					#include "llvm/ADT/StringExtras.h"
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <map>
 | 
					#include <map>
 | 
				
			||||||
| 
						 | 
					@ -66,7 +66,7 @@ struct StdStringHash
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    size_t operator()( const std::string& x ) const
 | 
					    size_t operator()( const std::string& x ) const
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return __gnu_cxx::hash<const char*>()( x.c_str() );
 | 
					        return llvm::HashString(x);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "lldb/lldb-private.h"
 | 
					#include "lldb/lldb-private.h"
 | 
				
			||||||
#include "lldb/Core/Flags.h"
 | 
					#include "lldb/Core/Flags.h"
 | 
				
			||||||
 | 
					#include <cstdarg>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace lldb_private {
 | 
					namespace lldb_private {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,7 +32,7 @@ public:
 | 
				
			||||||
        eVerbose    = (1 << 0), ///< If set, verbose logging is enabled
 | 
					        eVerbose    = (1 << 0), ///< If set, verbose logging is enabled
 | 
				
			||||||
        eDebug      = (1 << 1), ///< If set, debug logging is enabled
 | 
					        eDebug      = (1 << 1), ///< If set, debug logging is enabled
 | 
				
			||||||
        eAddPrefix  = (1 << 2), ///< Add number prefixes for binary, octal and hex when eBinary is clear
 | 
					        eAddPrefix  = (1 << 2), ///< Add number prefixes for binary, octal and hex when eBinary is clear
 | 
				
			||||||
        eBinary     = (1 << 3), ///< Get and put data as binary instead of as the default string mode.
 | 
					        eBinary     = (1 << 3)  ///< Get and put data as binary instead of as the default string mode.
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //------------------------------------------------------------------
 | 
					    //------------------------------------------------------------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,7 +49,7 @@ public:
 | 
				
			||||||
    /// Enumeration values for special and invalid Block User ID
 | 
					    /// Enumeration values for special and invalid Block User ID
 | 
				
			||||||
    /// values.
 | 
					    /// values.
 | 
				
			||||||
    //------------------------------------------------------------------
 | 
					    //------------------------------------------------------------------
 | 
				
			||||||
    typedef enum
 | 
					    enum
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        RootID = LLDB_INVALID_UID - 1,  ///< The Block UID for the root block
 | 
					        RootID = LLDB_INVALID_UID - 1,  ///< The Block UID for the root block
 | 
				
			||||||
        InvalidID = LLDB_INVALID_UID        ///< Invalid Block UID.
 | 
					        InvalidID = LLDB_INVALID_UID        ///< Invalid Block UID.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue