[llvm] [Dexter] Add VisualStudio2022 support to Dexter (PR #85248)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 08:36:43 PDT 2024
https://github.com/SLTozer created https://github.com/llvm/llvm-project/pull/85248
Dexter currently supports Visual Studio 2015/2017/2019, but not 2022; this patch adds support for 2022.
>From 78f3464d83e1da08cf7cdbf6a96aa796b443c90a Mon Sep 17 00:00:00 2001
From: Stephen Tozer <stephen.tozer at sony.com>
Date: Thu, 14 Mar 2024 15:30:15 +0000
Subject: [PATCH] Add VisualStudio2022 support to Dexter
---
.../dexter/dex/debugger/Debuggers.py | 2 ++
.../debugger/visualstudio/VisualStudio2022.py | 23 +++++++++++++++++++
2 files changed, 25 insertions(+)
create mode 100644 cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2022.py
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
index b251f1a0538ce3..1b0d4d5871cbeb 100644
--- a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
+++ b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
@@ -28,6 +28,7 @@
from dex.debugger.visualstudio.VisualStudio2015 import VisualStudio2015
from dex.debugger.visualstudio.VisualStudio2017 import VisualStudio2017
from dex.debugger.visualstudio.VisualStudio2019 import VisualStudio2019
+from dex.debugger.visualstudio.VisualStudio2022 import VisualStudio2022
def _get_potential_debuggers(): # noqa
@@ -41,6 +42,7 @@ def _get_potential_debuggers(): # noqa
VisualStudio2015.get_option_name(): VisualStudio2015,
VisualStudio2017.get_option_name(): VisualStudio2017,
VisualStudio2019.get_option_name(): VisualStudio2019,
+ VisualStudio2022.get_option_name(): VisualStudio2022,
}
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2022.py b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2022.py
new file mode 100644
index 00000000000000..6fcf8af4acabc1
--- /dev/null
+++ b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2022.py
@@ -0,0 +1,23 @@
+# DExTer : Debugging Experience Tester
+# ~~~~~~ ~ ~~ ~ ~~
+#
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+"""Specializations for the Visual Studio 2022 interface."""
+
+from dex.debugger.visualstudio.VisualStudio import VisualStudio
+
+
+class VisualStudio2022(VisualStudio):
+ @classmethod
+ def get_name(cls):
+ return "Visual Studio 2022"
+
+ @classmethod
+ def get_option_name(cls):
+ return "vs2022"
+
+ @property
+ def _dte_version(self):
+ return "VisualStudio.DTE.17.0"
More information about the llvm-commits
mailing list