Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
if (!symbol.IsValid())
continue;

Symbol dap_symbol = {};
Symbol dap_symbol;
dap_symbol.id = symbol.GetID();
dap_symbol.type = symbol.GetType();
dap_symbol.isDebug = symbol.IsDebug();
Expand Down
15 changes: 8 additions & 7 deletions lldb/tools/lldb-dap/Protocol/DAPTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#ifndef LLDB_TOOLS_LLDB_DAP_PROTOCOL_DAP_TYPES_H
#define LLDB_TOOLS_LLDB_DAP_PROTOCOL_DAP_TYPES_H

#include "lldb/lldb-defines.h"
#include "lldb/lldb-types.h"
#include "llvm/Support/JSON.h"
#include <optional>
Expand Down Expand Up @@ -50,29 +51,29 @@ llvm::json::Value toJSON(const SourceLLDBData &);

struct Symbol {
/// The symbol id, usually the original symbol table index.
uint32_t id;
uint32_t id = 0;

/// True if this symbol is debug information in a symbol.
bool isDebug;
bool isDebug = false;

/// True if this symbol is not actually in the symbol table, but synthesized
/// from other info in the object file.
bool isSynthetic;
bool isSynthetic = false;

/// True if this symbol is globally visible.
bool isExternal;
bool isExternal = false;

/// The symbol type.
lldb::SymbolType type;
lldb::SymbolType type = lldb::eSymbolTypeInvalid;

/// The symbol file address.
lldb::addr_t fileAddress;
lldb::addr_t fileAddress = LLDB_INVALID_ADDRESS;

/// The symbol load address.
std::optional<lldb::addr_t> loadAddress;

/// The symbol size.
lldb::addr_t size;
lldb::addr_t size = 0;

/// The symbol name.
std::string name;
Expand Down
Loading