mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
visualize global variable symbol pointers after addresses only on void*s (keep function symbol visualization for function pointer types); otherwise there is real content to visualize
This commit is contained in:
+3
-1
@@ -6854,6 +6854,7 @@ df_single_line_eval_value_strings_from_eval(Arena *arena, DF_EvalVizStringFlags
|
|||||||
DF_Eval value_eval = df_value_mode_eval_from_eval(graph, rdbg, ctrl_ctx, eval);
|
DF_Eval value_eval = df_value_mode_eval_from_eval(graph, rdbg, ctrl_ctx, eval);
|
||||||
|
|
||||||
// rjf: get pointed-at info
|
// rjf: get pointed-at info
|
||||||
|
TG_Kind type_kind = tg_kind_from_key(eval.type_key);
|
||||||
TG_Key direct_type_key = tg_ptee_from_graph_raddbg_key(graph, rdbg, eval.type_key);
|
TG_Key direct_type_key = tg_ptee_from_graph_raddbg_key(graph, rdbg, eval.type_key);
|
||||||
TG_Kind direct_type_kind = tg_kind_from_key(direct_type_key);
|
TG_Kind direct_type_kind = tg_kind_from_key(direct_type_key);
|
||||||
B32 direct_type_has_content = (direct_type_kind != TG_Kind_Null && direct_type_kind != TG_Kind_Void && value_eval.imm_u64 != 0);
|
B32 direct_type_has_content = (direct_type_kind != TG_Kind_Null && direct_type_kind != TG_Kind_Void && value_eval.imm_u64 != 0);
|
||||||
@@ -6897,7 +6898,8 @@ df_single_line_eval_value_strings_from_eval(Arena *arena, DF_EvalVizStringFlags
|
|||||||
}
|
}
|
||||||
|
|
||||||
// rjf: special-case: symbols
|
// rjf: special-case: symbols
|
||||||
else if((flags & DF_EvalVizStringFlag_ReadOnlyDisplayRules) && symbol_name.size != 0)
|
else if((flags & DF_EvalVizStringFlag_ReadOnlyDisplayRules) && symbol_name.size != 0 &&
|
||||||
|
(type_kind == TG_Kind_Function || direct_type_kind == TG_Kind_Void))
|
||||||
{
|
{
|
||||||
str8_list_push(arena, &list, symbol_name);
|
str8_list_push(arena, &list, symbol_name);
|
||||||
space_taken += f_dim_from_tag_size_string(font, font_size, symbol_name).x;
|
space_taken += f_dim_from_tag_size_string(font, font_size, symbol_name).x;
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// [ ] watch window reordering
|
// [ ] watch window reordering
|
||||||
// [ ] standard way to filter
|
// [ ] standard way to filter
|
||||||
// [ ] visualize remapped files (via path map)
|
// [ ] visualize remapped files (via path map)
|
||||||
// [ ] hovering truncated string for a short time -> tooltip with full wrapped
|
|
||||||
// string
|
|
||||||
// [ ] theme lister -> fonts & font sizes
|
// [ ] theme lister -> fonts & font sizes
|
||||||
// [ ] font lister
|
// [ ] font lister
|
||||||
// [ ] per-panel font size overrides
|
// [ ] per-panel font size overrides
|
||||||
@@ -33,8 +31,6 @@
|
|||||||
//
|
//
|
||||||
// [ ] it would be nice to have "show in explorer" for right click on source
|
// [ ] it would be nice to have "show in explorer" for right click on source
|
||||||
// file tab (opens explorer & selects the file)
|
// file tab (opens explorer & selects the file)
|
||||||
// [x] it would be nice if Alt+o in source file would switch between .h and
|
|
||||||
// .c/cpp file (just look for same name in same folder)
|
|
||||||
//
|
//
|
||||||
// [ ] what's up with decimal number coloring where every group of 3 are in
|
// [ ] what's up with decimal number coloring where every group of 3 are in
|
||||||
// different color? can I turn it off? And why sometimes digits in number
|
// different color? can I turn it off? And why sometimes digits in number
|
||||||
@@ -227,8 +223,6 @@
|
|||||||
// "save" option in the menus.
|
// "save" option in the menus.
|
||||||
//
|
//
|
||||||
// [ ] @cleanup @feature double & triple click select in source views
|
// [ ] @cleanup @feature double & triple click select in source views
|
||||||
// [ ] @feature hovering truncated text in UI for some amount of time -> show
|
|
||||||
// tooltip with full text
|
|
||||||
// [ ] @feature disasm keyboard navigation & copy/paste
|
// [ ] @feature disasm keyboard navigation & copy/paste
|
||||||
// [ ] @feature debug info overrides (both path-based AND module-based)
|
// [ ] @feature debug info overrides (both path-based AND module-based)
|
||||||
// [ ] configure tab size
|
// [ ] configure tab size
|
||||||
|
|||||||
Reference in New Issue
Block a user