[llvm] [dexter] Correctly identify stop-reason while driving VisualStudio (PR #94754)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 08:05:50 PDT 2024
================
@@ -307,6 +307,30 @@ def set_current_stack_frame(self, idx: int = 0):
)
)
+ def _translate_stop_reason(self, reason):
+ # https://learn.microsoft.com/en-us/dotnet/api/envdte.dbgeventreason?view=visualstudiosdk-2022
+ if reason == 1: # dbgEventReasonNone
----------------
SLTozer wrote:
I don't have strong opinions, but in general even if it's only going to be used once I think it's probably better to have something like `class VSDebugEventReason(IntEnum):` with the correct values added to it.
https://github.com/llvm/llvm-project/pull/94754
More information about the llvm-commits
mailing list