diff options
| author | ruki <[email protected]> | 2020-10-05 23:48:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-05 23:48:04 +0800 |
| commit | 86856b6dffc39c1da5e5b639bd77d4a160c92048 (patch) | |
| tree | 5f0d94288f6101c322af04fa55c414e039ebae32 | |
| parent | 3c24b8c6ebecb87f7171b74ac2695e37f32a9612 (diff) | |
fix gdb debugger
| -rw-r--r-- | xmake/actions/run/main.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/devel/debugger/run.lua | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua index 8a7ce09f4..c77c71546 100644 --- a/xmake/actions/run/main.lua +++ b/xmake/actions/run/main.lua @@ -57,7 +57,7 @@ function _do_run_target(target) -- debugging? if option.get("debug") then - debugger.run(targetfile, option.get("arguments"), {detach = true}) + debugger.run(targetfile, option.get("arguments")) else os.execv(targetfile, option.get("arguments")) end diff --git a/xmake/modules/devel/debugger/run.lua b/xmake/modules/devel/debugger/run.lua index b1cdcc0e3..c46701ed1 100644 --- a/xmake/modules/devel/debugger/run.lua +++ b/xmake/modules/devel/debugger/run.lua @@ -109,6 +109,7 @@ function _run_windbg(program, argv, opt) table.insert(argv, 1, program) -- run it + opt.detach = true os.execv(windbg, argv, opt) return true end @@ -145,6 +146,7 @@ function _run_x64dbg(program, argv, opt) table.insert(argv, 1, program) -- run it + opt.detach = true os.execv(x64dbg, argv, opt) return true end @@ -163,6 +165,7 @@ function _run_ollydbg(program, argv, opt) table.insert(argv, 1, program) -- run it + opt.detach = true os.execv(ollydbg, argv, opt) return true end @@ -181,6 +184,7 @@ function _run_vsjitdebugger(program, argv, opt) table.insert(argv, 1, program) -- run it + opt.detach = true os.execv(vsjitdebugger, argv, opt) return true end @@ -200,6 +204,7 @@ function _run_devenv(program, argv, opt) table.insert(argv, 2, program) -- run it + opt.detach = true os.execv(devenv, argv, opt) return true end @@ -238,7 +243,8 @@ function main(program, argv, opt) table.insert(debuggers, 1, {"devenv", _run_devenv}) end - -- get debugger from the configure + -- get debugger from configuration + opt = opt or {} local debugger = config.get("debugger") if debugger then |
