[Lldb-commits] [lldb] [lldb-dap] Show assembly depending on `stop-disassembly-display` settings (PR #136494)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 23 15:31:06 PDT 2025


================
@@ -37,6 +37,18 @@ void OptionValueEnumeration::DumpValue(const ExecutionContext *exe_ctx,
   }
 }
 
+llvm::json::Value
+OptionValueEnumeration::ToJSON(const ExecutionContext *exe_ctx) {
+  const size_t count = m_enumerations.GetSize();
+  for (size_t i = 0; i < count; ++i) {
+    if (m_enumerations.GetValueAtIndexUnchecked(i).value == m_current_value) {
+      return m_enumerations.GetCStringAtIndex(i).GetStringRef();
+    }
----------------
JDevlieghere wrote:

```suggestion
    if (m_enumerations.GetValueAtIndexUnchecked(i).value == m_current_value) 
      return m_enumerations.GetCStringAtIndex(i).GetStringRef();
```

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


More information about the lldb-commits mailing list