This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add SBDebugger APIs for querying logging channels and categories
Needs RevisionPublic

Authored by teemperor on May 30 2021, 4:05 AM.

Details

Summary

We already have a function that takes channels/categories to enable logging, but there is no way to query what is available.

Diff Detail

Event Timeline

teemperor created this revision.May 30 2021, 4:05 AM
teemperor requested review of this revision.May 30 2021, 4:05 AM

Should this include something for disabling as well?

lldb/test/API/functionalities/logging/TestLoggingAPI.py
53

Shouldn't this be GetLogCategories(valid_channel)?

clayborg requested changes to this revision.Jun 1 2021, 4:03 PM
clayborg added a subscriber: clayborg.

Fix the test variable names and this is good to go

lldb/test/API/functionalities/logging/TestLoggingAPI.py
34
36
42
44
49
53
This revision now requires changes to proceed.Jun 1 2021, 4:03 PM