[Dexter] add visual studio 2019 debugger support

Adds visual studio debugger support to dexter via option --debugger vs2019

Differential Revision: https://reviews.llvm.org/D89803

Author:    Nabeel Omer <nabeel.omer@sony.com>
This commit is contained in:
Nabeel Omer 2020-11-04 16:57:19 +00:00 committed by Tom Weaver
parent 91c3c67c40
commit 3ebcef4b73
2 changed files with 26 additions and 1 deletions

View File

@ -27,6 +27,7 @@ from dex.debugger.dbgeng.dbgeng import DbgEng
from dex.debugger.lldb.LLDB import LLDB
from dex.debugger.visualstudio.VisualStudio2015 import VisualStudio2015
from dex.debugger.visualstudio.VisualStudio2017 import VisualStudio2017
from dex.debugger.visualstudio.VisualStudio2019 import VisualStudio2019
def _get_potential_debuggers(): # noqa
@ -38,7 +39,8 @@ def _get_potential_debuggers(): # noqa
DbgEng.get_option_name(): DbgEng,
LLDB.get_option_name(): LLDB,
VisualStudio2015.get_option_name(): VisualStudio2015,
VisualStudio2017.get_option_name(): VisualStudio2017
VisualStudio2017.get_option_name(): VisualStudio2017,
VisualStudio2019.get_option_name(): VisualStudio2019
}

View File

@ -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 2019 interface."""
from dex.debugger.visualstudio.VisualStudio import VisualStudio
class VisualStudio2019(VisualStudio):
@classmethod
def get_name(cls):
return 'Visual Studio 2019'
@classmethod
def get_option_name(cls):
return 'vs2019'
@property
def _dte_version(self):
return 'VisualStudio.DTE.16.0'