[Lldb-commits] [PATCH] D128323: [lldb] Add support for specifying a log handler

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 24 06:43:36 PDT 2022


labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lldb/source/Commands/CommandObjectLog.cpp:167
       buffer_size.Clear();
+      handler = eLogHandlerStream;
       log_options = 0;
----------------
mib wrote:
> clayborg wrote:
> > Do we want to define a "eLogHandlerDefault" which points to "eLogHandlerStream"?
> I was hoping we could use a type alias for this, that marks `eLogHandlerStream` as `eLogHandlerDefault` but I couldn't find of a nice C++ way to do it :/ 
Were you maybe looking for something like:
```
enum {
 foo_1,
 foo_2,
 ...,
  foo_default = foo_47
};
```


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128323/new/

https://reviews.llvm.org/D128323



More information about the lldb-commits mailing list