add way to get the address of variable

This commit is contained in:
T0b1
2024-05-06 04:10:13 +02:00
parent 53899ef3c3
commit eb98d911f6
7 changed files with 200 additions and 104 deletions

View File

@@ -86,6 +86,7 @@ namespace dbgui::backend
bool used;
bool
global_or_static; // need to only compare compilation unit and module
bool address_of_or_pointer;
std::optional<data::result::NodeIdx> cached_node;
};
@@ -135,13 +136,16 @@ namespace dbgui::backend
std::optional<data::result::NodeIdx>
build_nodes_for_var(lldb::SBValue &val,
std::vector<data::result::Node> &to_send);
std::vector<data::result::Node> &to_send,
bool address_of_or_pointer);
data::result::NodeIdx
build_nodes_for_var_uncached(lldb::SBValue &,
std::vector<data::result::Node> &to_send);
std::vector<data::result::Node> &to_send,
bool address_of_or_pointer);
void build_nodes_for_var_cached(lldb::SBValue &,
data::result::NodeIdx cache_idx,
std::vector<data::result::Node> &to_send);
std::vector<data::result::Node> &to_send,
bool address_of_or_pointer);
void clear_unused_vars_from_cache();