mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-14 02:03:27 -08:00
dbg_info: swap for (dbg infos) for (name map tables) loops in debug info name identifier resolution - prefer *all* global variables first, for example, before types.
This commit is contained in:
1 parent
fc0ee681e0
commit
c55a14f634
4 files changed
+8
-5
No files matched your search
+1
-2
@@ -7,19 +7,18 @@ target:
|
||||
working_directory: build
|
||||
arguments: "--user:raddbg_test.user"
|
||||
debug_subprocesses: 0
|
||||
enabled: 1
|
||||
}
|
||||
target:
|
||||
{
|
||||
executable: "build/raddbg_server.exe"
|
||||
working_directory: build
|
||||
debug_subprocesses: 1
|
||||
enabled: 1
|
||||
}
|
||||
target:
|
||||
{
|
||||
executable: "build/metagen.exe"
|
||||
working_directory: build
|
||||
enabled: 1
|
||||
}
|
||||
target:
|
||||
{
|
||||
|
||||
@@ -3201,10 +3201,12 @@ d_ctrl_thread__next_dmn_event(Arena *arena, DMN_CtrlCtx *ctrl_ctx, D_Msg *msg, D
|
||||
// a halt, and we're waiting for that)
|
||||
if(events.first != 0 && events.count == 1 && events.first->v.kind == DMN_EventKind_Error && events.first->v.error_kind == DMN_ErrorKind_NotAttached)
|
||||
{
|
||||
#if 0
|
||||
for(;num_servers_running > 0;)
|
||||
{
|
||||
// TODO(rjf)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//- rjf: bump all debuggee state generations
|
||||
|
||||
@@ -1703,6 +1703,8 @@ di_match_artifact_create(String8 key, B32 *cancel_signal, AC_Status *status_out,
|
||||
RDI_SectionKind_Procedures,
|
||||
RDI_SectionKind_TypeNodes,
|
||||
};
|
||||
for EachElement(name_map_kind_idx, name_map_kinds)
|
||||
{
|
||||
Rng1U64 range = lane_range(dbgi_keys.count);
|
||||
for EachInRange(dbgi_idx, range)
|
||||
{
|
||||
@@ -1715,8 +1717,7 @@ di_match_artifact_create(String8 key, B32 *cancel_signal, AC_Status *status_out,
|
||||
{
|
||||
RDI_Parsed *rdi = di_rdi_from_key(access, dbgi_key, 0, 0);
|
||||
RDI_Unit *unit = rdi_element_from_name_idx(rdi, Units, unit_idx);
|
||||
for EachElement(name_map_kind_idx, name_map_kinds)
|
||||
{
|
||||
|
||||
// rjf: unpack name map
|
||||
RDI_NameMap *name_map = rdi_element_from_name_idx(rdi, NameMaps, name_map_kinds[name_map_kind_idx]);
|
||||
RDI_ParsedNameMap parsed_name_map = {0};
|
||||
@@ -1821,11 +1822,11 @@ di_match_artifact_create(String8 key, B32 *cancel_signal, AC_Status *status_out,
|
||||
lane_matches[lane_idx()].count = filtered_matches_count;
|
||||
}
|
||||
}
|
||||
}
|
||||
access_close(access);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lane_sync();
|
||||
|
||||
//- rjf: pick match
|
||||
|
||||
@@ -129,4 +129,5 @@ internal B32
|
||||
sock_endpoint_match(SOCK_Endpoint a, SOCK_Endpoint b)
|
||||
{
|
||||
B32 result = (a.port == b.port && a.kind == b.kind && MemoryMatchArray(a.address_u8, b.address_u8));
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user