summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-09-09 06:25:08 +0000
committerCaroline Tice <ctice@apple.com>2010-09-09 06:25:08 +0000
commit101c7c2060354f6e91efc65f9c4ea9f13a591152 (patch)
treed8423df9d08dfc78cd1615f317468f5ff70c9e76 /lldb/source/Commands/CommandObjectProcess.cpp
parent4adbaf184340a71925eea83a2811c4763e281f38 (diff)
downloadbcm5719-llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.tar.gz
bcm5719-llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.zip
Make all debugger-level user settable variables into instance variables.
Make get/set variable at the debugger level always set the particular debugger's instance variables rather than the default variables. llvm-svn: 113474
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 703221a0bee..b6fb4d0c653 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -162,6 +162,7 @@ public:
process = target->CreateProcess (interpreter.GetDebugger().GetListener(), plugin_name).get();
const char *process_name = process->GetInstanceName().AsCString();
+ const char *debugger_instance_name = interpreter.GetDebugger().GetInstanceName().AsCString();
StreamString run_args_var_name;
StreamString env_vars_var_name;
StreamString disable_aslr_var_name;
@@ -170,7 +171,8 @@ public:
Args *run_args = NULL;
run_args_var_name.Printf ("process.[%s].run-args", process_name);
StringList run_args_value = Debugger::GetSettingsController()->GetVariable (run_args_var_name.GetData(),
- var_type);
+ var_type, debugger_instance_name);
+
if (run_args_value.GetSize() > 0)
{
run_args = new Args;
@@ -181,7 +183,8 @@ public:
Args *environment = NULL;
env_vars_var_name.Printf ("process.[%s].env-vars", process_name);
StringList env_vars_value = Debugger::GetSettingsController()->GetVariable (env_vars_var_name.GetData(),
- var_type);
+ var_type, debugger_instance_name);
+
if (env_vars_value.GetSize() > 0)
{
environment = new Args;
@@ -192,7 +195,9 @@ public:
uint32_t launch_flags = eLaunchFlagNone;
disable_aslr_var_name.Printf ("process.[%s].disable-aslr", process_name);
StringList disable_aslr_value = Debugger::GetSettingsController()->GetVariable(disable_aslr_var_name.GetData(),
- var_type);
+ var_type,
+ debugger_instance_name);
+
if (disable_aslr_value.GetSize() > 0)
{
if (strcmp (disable_aslr_value.GetStringAtIndex(0), "true") == 0)
@@ -214,7 +219,9 @@ public:
// launch-args was not empty; use that, AND re-set run-args to contains launch-args values.
std::string new_run_args;
launch_args.GetCommandString (new_run_args);
- Debugger::GetSettingsController()->SetVariable (run_args_var_name.GetData(), new_run_args.c_str(), lldb::eVarSetOperationAssign, false);
+ Debugger::GetSettingsController()->SetVariable (run_args_var_name.GetData(), new_run_args.c_str(),
+ lldb::eVarSetOperationAssign, false,
+ interpreter.GetDebugger().GetInstanceName().AsCString());
}
OpenPOWER on IntegriCloud