You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Purpose
Add support for GDB's `vRun` packet to ds2 debug sessions. Fixes issue
#150.
## Overview
* Override `SessionDelegate::onRunAttach` in `DebugSession`. Use
existing `spawnProcess` method to actually launch the process.
* Preserve environment variables set on `_spawner` by previous calls to
`onSetEnvironmentVariable`.
* Preserve previous executable and arguments set on `_spawner` from
previous calls to `onRunAttach`.
* Update `spawnProcess` to use memoized executable, arguments, and
environment when new ones are not provided.
* Fix missing `index++` in `Session::Handle_vRun.
## Problem Details
The following test cases rely on the `vRun` packet to work properly in
the debug session:
```
GdbRemoteLaunchTestCase.test_QEnvironmentHexEncoded_llgs
GdbRemoteLaunchTestCase.test_QEnvironment_llgs
GdbRemoteLaunchTestCase.test_launch_via_vRun_llgs
GdbRemoteLaunchTestCase.test_launch_via_vRun_no_args_llgs
```
## Validation
Combined with PR #143, this change gets all of the
`GdbRemoteLaunchTestCase` test cases passing against ds2 running on
Linux x86_64.
0 commit comments