summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-05-03 15:56:59 +0000
committerAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-05-03 15:56:59 +0000
commitd77e8aefe342ab80b5d90df6a08ce5d51a59199e (patch)
treedcbe1d5055370326771d1180969468f42c026760 /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parent00622f7d26830ec5887ea14ffefa6054cb0e4516 (diff)
downloadbcm5719-llvm-d77e8aefe342ab80b5d90df6a08ce5d51a59199e.tar.gz
bcm5719-llvm-d77e8aefe342ab80b5d90df6a08ce5d51a59199e.zip
Fixed 'command script import' by eliminating the shadowing of basename.
Reviewed by: Daniel Malea llvm-svn: 181027
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index 8d41f71d83d..3206154224b 100644
--- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
@@ -2593,8 +2593,8 @@ ScriptInterpreterPython::LoadScriptingModule (const char* pathname,
{
FileSpec target_file(pathname, true);
+ std::string basename(target_file.GetFilename().GetCString());
- std::string basename;
StreamString command_stream;
// Before executing Pyton code, lock the GIL.
@@ -2612,7 +2612,6 @@ ScriptInterpreterPython::LoadScriptingModule (const char* pathname,
else
{
const char* directory = target_file.GetDirectory().GetCString();
- std::string basename(target_file.GetFilename().GetCString());
// now make sure that Python has "directory" in the search path
StreamString command_stream;
OpenPOWER on IntegriCloud