Skip to content

Commit

Permalink
fix lldb and gdb arguments bug
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 16, 2016
1 parent 492f6af commit b5f21a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions xmake/tools/gdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ end
function run(shellname, argv)

-- patch arguments
argv = argv or {}
table.insert(argv, 1, shellname)
table.insert(argv, 1, "--args")

Expand Down
1 change: 1 addition & 0 deletions xmake/tools/lldb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function run(shellname, argv)
local shellnames = _g.shellname:split("%s")

-- patch arguments
argv = argv or {}
table.insert(argv, 1, shellname)
for i = #shellnames, 2, -1 do
table.insert(argv, 1, shellnames[i])
Expand Down

0 comments on commit b5f21a0

Please sign in to comment.