[Lldb-commits] [lldb] [lldb-dap] Add an option to provide a format for stack frames (PR #71843)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 13 17:27:38 PST 2023


https://github.com/clayborg requested changes to this pull request.

One last request: test the SBFormat API in a stand alone test in `lldb/test/api/sbformat` so we can see if the errors work and the "operator bool" works as expected:
```
format = lldb.SBFormat()
self.assertFalse(format)
err = lldb.SBError()
format = lldb.SBFormat("${bad}", error)
self.assertFalse(format) # We expect an invalid object back if we have an error
self.assertTrue(error.Fail())
format = lldb.SBFormat("${frame.index}", error)
# Check the error string here as well
self.assertTrue(format)
self.assertTrue(error.Success())
```


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


More information about the lldb-commits mailing list