microsoft / microsoft/vscode-cpptools

GDB settings not honored per debug session

Open
#4,487 1 comment 0 reactions 1 assignee View on GitHub

@pieandcakes is already working on this.

Since Oct 28, 2019.

debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Debugger

Describe the bug
OS and Version: Debian 9 x86_64
VS Code Version: 1.39.2
C/C++ Extension Version: 0.26.0
GDB Version: 8.3.1

To Reproduce
Create a simple hello world program and two distinct debug configurations, both of which target the same executable. Launch both sessions concurrently where in session 1 you issue -exec set auto-solib-add off and in the other you issue -exec set auto-solib-add on. Note that depending on the order in which you issue these commands, the other session will have its value overwritten.

Expected behavior
Both debug sessions should honor their solib-add settings. Session 1 should not automatically load shared library debug symbols despite such setting being overwritten in Session 2. It seems both sessions currently use the same MIEngine.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.