Added the ability to disable ASLR (Address Space Layout Randomization). ASLR
is disabled by default, and can be enabled using:

(lldb) set disable-aslr 0



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112616 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index eaf886f..f127fde 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -161,6 +161,11 @@
                                          80,
                                         "The maximum number of columns to use for displaying text."));
     
+    m_variables["disable-aslr"] =
+    StateVariableSP (new StateVariable ("disable-aslr",
+                                        1,
+                                        "Disable Address Space Layout Randomization (ASLR)."));
+    
 }
 
 const char *
@@ -898,6 +903,14 @@
     return NULL;
 }
 
+int
+CommandInterpreter::GetDisableASLR ()
+{
+    StateVariable *var = GetStateVariable ("disable-aslr");
+    int disable_aslr = var->GetIntValue();
+
+    return disable_aslr;
+}
 
 CommandInterpreter::~CommandInterpreter ()
 {