diff options
| author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-03 15:56:59 +0000 |
|---|---|---|
| committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-03 15:56:59 +0000 |
| commit | d77e8aefe342ab80b5d90df6a08ce5d51a59199e (patch) | |
| tree | dcbe1d5055370326771d1180969468f42c026760 /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
| parent | 00622f7d26830ec5887ea14ffefa6054cb0e4516 (diff) | |
| download | bcm5719-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.cpp | 3 |
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; |

