From ce72af8b59c013918cf72e5f9723461f2e44047b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 27 Sep 2024 16:30:01 -0700 Subject: [PATCH] fix inclusion of symbolized addresses in editable eval visualization strings --- src/raddbg/raddbg_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index 392dea7b..de2702df 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -8573,6 +8573,7 @@ rd_append_value_strings_from_eval(Arena *arena, EV_StringFlags flags, U32 defaul // rjf: special case: push strings for symbols if(!did_content && symbol_name.size != 0 && + flags & EV_StringFlag_ReadOnlyDisplayRules && ((type_kind == E_TypeKind_Ptr && direct_type_kind == E_TypeKind_Void) || (type_kind == E_TypeKind_Ptr && direct_type_kind == E_TypeKind_Function) || (type_kind == E_TypeKind_Function))) @@ -8584,6 +8585,7 @@ rd_append_value_strings_from_eval(Arena *arena, EV_StringFlags flags, U32 defaul // rjf: special case: need symbol name, don't have one if(!did_content && symbol_name.size == 0 && + flags & EV_StringFlag_ReadOnlyDisplayRules && ((type_kind == E_TypeKind_Ptr && direct_type_kind == E_TypeKind_Function) || (type_kind == E_TypeKind_Function)) && (flags & EV_StringFlag_ReadOnlyDisplayRules))