[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 07:18:38 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:

May be something like:
```
dbgEventReasonNone = 1
dbgEventReasonGo = 2
...
if reason == dbgEventReasonNone: 
...
```
Basically is the same code, but I think it is easy to read.

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


More information about the llvm-commits mailing list