[llvm] [dexter] Correctly identify stop-reason while driving VisualStudio (PR #94754)

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 06:55:00 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
----------------
CarlosAlbertoEnciso wrote:

Can those magic values (1, 9, 8, ...) be replace for some named constants?

https://github.com/llvm/llvm-project/pull/94754


More information about the llvm-commits mailing list