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

2022-06-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGbe265d25ca5e: [lldb] Add support for specifying a log handler (authored by JDevlieghere). Herald added a project: LLDB. Repository: rG LLVM

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

2022-06-24 Thread Med Ismail Bennani via Phabricator via lldb-commits
mib added inline comments. Comment at: lldb/source/Commands/CommandObjectLog.cpp:167 buffer_size.Clear(); + handler = eLogHandlerStream; log_options = 0; labath wrote: > mib wrote: > > clayborg wrote: > > > Do we want to define a

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

2022-06-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 439874. JDevlieghere added a comment. Improve help and error message CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128323/new/ https://reviews.llvm.org/D128323 Files: lldb/include/lldb/Core/Debugger.h lldb/include/lldb/lldb-enumerations.h

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

2022-06-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 439866. JDevlieghere added a comment. Add `eLogHandlerDefault = eLogHandlerStream`. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128323/new/ https://reviews.llvm.org/D128323 Files: lldb/include/lldb/Core/Debugger.h

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

2022-06-24 Thread Pavel Labath via Phabricator via lldb-commits
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

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

2022-06-23 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 439575. JDevlieghere marked 2 inline comments as done. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128323/new/ https://reviews.llvm.org/D128323 Files: lldb/include/lldb/Core/Debugger.h lldb/include/lldb/lldb-enumerations.h

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

2022-06-23 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere marked 6 inline comments as done. JDevlieghere added a subscriber: jingham. JDevlieghere added inline comments. Comment at: lldb/source/Commands/CommandObjectLog.cpp:26 +static constexpr OptionEnumValueElement g_log_handler_type[] = { +{

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

2022-06-23 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: lldb/source/Commands/CommandObjectLog.cpp:26 +static constexpr OptionEnumValueElement g_log_handler_type[] = { +{ Question: how does one see these values and their descriptions? Do the descriptions get displayed

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

2022-06-22 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 439170. JDevlieghere marked 2 inline comments as done. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128323/new/ https://reviews.llvm.org/D128323 Files: lldb/include/lldb/Core/Debugger.h lldb/include/lldb/lldb-private-enumerations.h

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

2022-06-22 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere marked 11 inline comments as done. JDevlieghere added inline comments. Comment at: lldb/source/Commands/Options.td:436-437 Desc<"Set the log to be buffered, using the specified buffer size.">; + def log_handler : Option<"handler", "h">, Group<1>, +

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

2022-06-22 Thread Med Ismail Bennani via Phabricator via lldb-commits
mib added inline comments. Comment at: lldb/source/Commands/CommandObjectLog.cpp:167 buffer_size.Clear(); + handler = eLogHandlerStream; log_options = 0; clayborg wrote: > Do we want to define a "eLogHandlerDefault" which points to >

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

2022-06-22 Thread Med Ismail Bennani via Phabricator via lldb-commits
mib added inline comments. Comment at: lldb/source/Core/Debugger.cpp:1409-1411 +static std::shared_ptr +CreateLogHandler(LogHandlerKind log_handler_kind, int fd, bool should_close, + size_t buffer_size) { Many (or most) arguments passed to this

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

2022-06-21 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, clayborg, kastiglione, mib. Herald added a project: All. JDevlieghere requested review of this revision. This patch adds a new flag to `log enable` allowing the user to specify a log handler. This makes it possible to