mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-09 07:18:09 +00:00
dbg_engine: extend trap-net range across contiguous same-source-line ranges
This commit is contained in:
committed by
Ryan Fleury
parent
d7e5c5a830
commit
65288208af
@@ -378,6 +378,23 @@ d_trap_net_from_thread__step_over_line(Arena *arena, D_Entity *thread)
|
||||
}
|
||||
}
|
||||
|
||||
// extend trap-net range across contiguous same-source-line, possibly unsorted, ranges
|
||||
//
|
||||
// TODO: @ns: converter should never produce these ranges in the first place,
|
||||
// once fixed, assert this invariant
|
||||
for(B32 changed = 1; changed;)
|
||||
{
|
||||
changed = 0;
|
||||
for EachNode(n, Rng1U64Node, all_vaddr_ranges_on_same_line.first)
|
||||
{
|
||||
if(n->v.min <= line_vaddr_rng.max && line_vaddr_rng.max < n->v.max)
|
||||
{
|
||||
line_vaddr_rng.max = n->v.max;
|
||||
changed = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// rjf: opl line_vaddr_rng -> 0xf00f00 or 0xfeefee? => include in line vaddr range
|
||||
//
|
||||
// MSVC exports line info at these line numbers when /JMC (Just My Code) debugging
|
||||
|
||||
Reference in New Issue
Block a user