[Lldb-commits] [lldb] [lldb] Add utility to create Mach-O corefile from YAML desc (PR #153911)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 15 19:05:50 PDT 2025


jasonmolenda wrote:

One thing I wasn't thrilled about with llvm's yaml MappingTraits parser was that I need to define register values like
```
       registers: [
           {name: x0, value: 0x0000000000000001}, {name: x1, value: 0x000000016fdff3c0},
            {name: x2, value: 0x000000016fdff3d0}, {name: x3, value: 0x000000016fdff510},
```

instead of a more natural style of `registers = { "x0": 0x1, "x1": 0x16fdff3c0, "x2": 0x16fdff3d0}` or so.  
At least I couldn't figure out how to do this.  It makes the yaml descriptions noisier than they really need to be.

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


More information about the lldb-commits mailing list