Skip to content

Commit 4b5b7ec

Browse files
authored
[Dexter] Add VisualStudio2022 support to Dexter (llvm#85248)
Dexter currently supports Visual Studio 2015/2017/2019, but not 2022; this patch adds support for 2022.
1 parent 59ab86b commit 4b5b7ec

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from dex.debugger.visualstudio.VisualStudio2015 import VisualStudio2015
2929
from dex.debugger.visualstudio.VisualStudio2017 import VisualStudio2017
3030
from dex.debugger.visualstudio.VisualStudio2019 import VisualStudio2019
31+
from dex.debugger.visualstudio.VisualStudio2022 import VisualStudio2022
3132

3233

3334
def _get_potential_debuggers(): # noqa
@@ -41,6 +42,7 @@ def _get_potential_debuggers(): # noqa
4142
VisualStudio2015.get_option_name(): VisualStudio2015,
4243
VisualStudio2017.get_option_name(): VisualStudio2017,
4344
VisualStudio2019.get_option_name(): VisualStudio2019,
45+
VisualStudio2022.get_option_name(): VisualStudio2022,
4446
}
4547

4648

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# DExTer : Debugging Experience Tester
2+
# ~~~~~~ ~ ~~ ~ ~~
3+
#
4+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5+
# See https://llvm.org/LICENSE.txt for license information.
6+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7+
"""Specializations for the Visual Studio 2022 interface."""
8+
9+
from dex.debugger.visualstudio.VisualStudio import VisualStudio
10+
11+
12+
class VisualStudio2022(VisualStudio):
13+
@classmethod
14+
def get_name(cls):
15+
return "Visual Studio 2022"
16+
17+
@classmethod
18+
def get_option_name(cls):
19+
return "vs2022"
20+
21+
@property
22+
def _dte_version(self):
23+
return "VisualStudio.DTE.17.0"

cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/list-debuggers/list-debuggers.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ RUN: %dexter_base list-debuggers | FileCheck %s
55
CHECK: lldb
66
CHECK: vs2015
77
CHECK: vs2017
8+
CHECK: vs2019
9+
CHECK: vs2022

0 commit comments

Comments
 (0)