Always use the full variable name when dumping globals since they might
be in namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141845 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index 3c92f8e..a3f0b24 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -684,7 +684,7 @@
valobj_sp = ValueObjectVariable::Create (exe_ctx.GetBestExecutionContextScope(), var_sp);
if (valobj_sp)
- DumpValueObject (s, var_sp, valobj_sp, use_var_name ? var_sp->GetName().GetCString() : arg);
+ DumpValueObject (s, var_sp, valobj_sp, var_sp->GetName().GetCString());
}
}
}