diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-29 16:41:30 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-29 16:41:30 +0000 |
| commit | a8ea595509f33834091fb9e3234a373f83d709a8 (patch) | |
| tree | 083004a39520082ad3caba6186c23d41ffb4ee6a /lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | |
| parent | cc0bc941d4ebd0275fe206d78f395822258e73bc (diff) | |
| download | bcm5719-llvm-a8ea595509f33834091fb9e3234a373f83d709a8.tar.gz bcm5719-llvm-a8ea595509f33834091fb9e3234a373f83d709a8.zip | |
[lldb] Also include the array definition in Properties.inc
Right now our Properties.inc only generates the initializer for the
options list but not the array declaration boilerplate around it. As the
array definition is identical for all arrays, we might as well also let
the Properties.inc generate it alongside the initializers.
Unfortunately we cannot do the same for enums, as there's this magic
ePropertyExperimental, which needs to come at the end to be interpreted
correctly. Hopefully we can get rid of this in the future and do the
same for the property enums.
Differential revision: https://reviews.llvm.org/D65353
llvm-svn: 367238
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index 5542018a4f9..1782661edbe 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -52,10 +52,8 @@ using namespace lldb_private; namespace { -static constexpr PropertyDefinition g_properties[] = { #define LLDB_PROPERTIES_processkdp #include "Properties.inc" -}; enum { #define LLDB_PROPERTIES_processkdp @@ -70,7 +68,7 @@ public: PluginProperties() : Properties() { m_collection_sp = std::make_shared<OptionValueProperties>(GetSettingName()); - m_collection_sp->Initialize(g_properties); + m_collection_sp->Initialize(g_processkdp_properties); } virtual ~PluginProperties() {} @@ -78,7 +76,7 @@ public: uint64_t GetPacketTimeout() { const uint32_t idx = ePropertyKDPPacketTimeout; return m_collection_sp->GetPropertyAtIndexAsUInt64( - NULL, idx, g_properties[idx].default_uint_value); + NULL, idx, g_processkdp_properties[idx].default_uint_value); } }; |

