@@ -98,7 +98,7 @@ struct CommandInfo : public LLDBBaseTelemetryInfo {
9898 // / session. Necessary because we'd send off an entry right before a command's
9999 // / execution and another right after. This is to avoid losing telemetry if
100100 // / the command does not execute successfully.
101- uint64_t command_id;
101+ uint64_t command_id = 0 ;
102102 // / The command name(eg., "breakpoint set")
103103 std::string command_name;
104104 // / These two fields are not collected by default due to PII risks.
@@ -125,7 +125,7 @@ struct CommandInfo : public LLDBBaseTelemetryInfo {
125125
126126 void serialize (llvm::telemetry::Serializer &serializer) const override ;
127127
128- static uint64_t GetNextId ();
128+ static uint64_t GetNextID ();
129129
130130private:
131131 // We assign each command (in the same session) a unique id so that their
@@ -161,14 +161,14 @@ struct ExecModuleInfo : public LLDBBaseTelemetryInfo {
161161 // / The same as the executable-module's UUID.
162162 UUID exec_uuid;
163163 // / PID of the process owned by this target.
164- lldb::pid_t pid;
164+ lldb::pid_t pid = LLDB_INVALID_PROCESS_ID ;
165165 // / The triple of this executable module.
166166 std::string triple;
167167
168168 // / If true, this entry was emitted at the beginning of an event (eg., before
169169 // / the executable is set). Otherwise, it was emitted at the end of an
170170 // / event (eg., after the module and any dependency were loaded.)
171- bool is_start_entry;
171+ bool is_start_entry = false ;
172172
173173 ExecModuleInfo () = default ;
174174
@@ -192,8 +192,8 @@ struct ExitDescription {
192192
193193struct ProcessExitInfo : public LLDBBaseTelemetryInfo {
194194 UUID exec_uuid;
195- lldb::pid_t pid;
196- bool is_start_entry;
195+ lldb::pid_t pid = LLDB_INVALID_PROCESS_ID ;
196+ bool is_start_entry = false ;
197197 std::optional<ExitDescription> exit_desc;
198198
199199 llvm::telemetry::KindType getKind () const override {
0 commit comments