mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-26 01:13:44 +00:00
bp hit counts reset; cell-granularity deletions path for watch windows
This commit is contained in:
@@ -15318,6 +15318,19 @@ rd_frame(void)
|
||||
switch(evt->kind)
|
||||
{
|
||||
default:{}break;
|
||||
case D_EventKind_ProcessBegin:
|
||||
{
|
||||
// rjf: reset breakpoint hit counts
|
||||
CTRL_EntityList processes = ctrl_entity_list_from_kind(d_state->ctrl_entity_store, CTRL_EntityKind_Process);
|
||||
if(processes.count == 1)
|
||||
{
|
||||
RD_EntityList bps = rd_query_cached_entity_list_with_kind(RD_EntityKind_Breakpoint);
|
||||
for(RD_EntityNode *n = bps.first; n != 0; n = n->next)
|
||||
{
|
||||
n->entity->u64 = 0;
|
||||
}
|
||||
}
|
||||
}break;
|
||||
case D_EventKind_Stop:
|
||||
{
|
||||
CTRL_Entity *thread = ctrl_entity_from_handle(d_state->ctrl_entity_store, evt->thread);
|
||||
|
||||
@@ -1833,6 +1833,16 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
|
||||
}
|
||||
ev_key_set_view_rule(eval_view, row->key, str8_zero());
|
||||
}
|
||||
else if(tbl.y != 0 && (col->kind == RD_WatchViewColumnKind_Value || col->kind == RD_WatchViewColumnKind_Member) && row_kind == RD_WatchViewRowKind_Normal)
|
||||
{
|
||||
E_Expr *expr = row->expr;
|
||||
if(col->kind == RD_WatchViewColumnKind_Member)
|
||||
{
|
||||
expr = e_expr_ref_member_access(scratch.arena, expr, str8(col->string_buffer, col->string_size));
|
||||
}
|
||||
E_Eval dst_eval = e_eval_from_expr(scratch.arena, expr);
|
||||
rd_commit_eval_value_string(dst_eval, str8_zero());
|
||||
}
|
||||
}
|
||||
}
|
||||
for(RD_EntityNode *n = entities_to_remove.first; n != 0; n = n->next)
|
||||
|
||||
Reference in New Issue
Block a user