[Lldb-commits] [lldb] [lldb] Add ability to show enum as name and value at the same time (PR #90059)

Vlad Serebrennikov via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 25 08:15:33 PDT 2024


Endilll wrote:

> For me the picture is limited to register printing. I'll be setting this new option on the register type when printing (https://github.com/DavidSpickett/llvm-project/commit/24dbefaa14030646ba0871298989558221af1ba0#diff-18135f619417bbaa1ab0c181ce55b2c55681323c06e90fa1a3e16099c7176e21). So only from C++ for now.

So it's hard-coded, I see.

> What is a flag like enum?

`enum { a = 1, b = 2, c = 4, d = 8}` — this sort of enumeration. Sorry if my terminology was confusing. They are handled further in `DumpEnumValue()`, after the changes you've made here, and called bit-fields in the comments.

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


More information about the lldb-commits mailing list