diff options
| author | ruki <[email protected]> | 2017-06-21 08:41:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-21 08:41:22 +0800 |
| commit | 45a54659f7449ead7ed073f9c0cbbe1da9fcdc06 (patch) | |
| tree | a09be69c75dce6435d7584ad467aeb51e3c8d37a /xmake/modules/devel/debugger/run.lua | |
| parent | ace13f7594d5dbddd771cfe0a4004bbcb506b11c (diff) | |
rename shellname to program
Diffstat (limited to 'xmake/modules/devel/debugger/run.lua')
| -rw-r--r-- | xmake/modules/devel/debugger/run.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/devel/debugger/run.lua b/xmake/modules/devel/debugger/run.lua index 417d104ed..1b71caafe 100644 --- a/xmake/modules/devel/debugger/run.lua +++ b/xmake/modules/devel/debugger/run.lua @@ -62,18 +62,18 @@ function _run_lldb(program, argv) return false end - -- attempt to split shellname, .e.g xcrun -sdk macosx lldb - local shellnames = lldb:split("%s") + -- attempt to split name, .e.g xcrun -sdk macosx lldb + local names = lldb:split("%s") -- patch arguments argv = argv or {} table.insert(argv, 1, program) - for i = #shellnames, 2, -1 do - table.insert(argv, 1, shellnames[i]) + for i = #names, 2, -1 do + table.insert(argv, 1, names[i]) end -- run it - os.execv(shellnames[1], argv) + os.execv(names[1], argv) -- ok return true |
