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
+17
-14
No files matched your search
+1
-2
@@ -7,19 +7,18 @@ target:
|
|||||||
working_directory: build
|
working_directory: build
|
||||||
arguments: "--user:raddbg_test.user"
|
arguments: "--user:raddbg_test.user"
|
||||||
debug_subprocesses: 0
|
debug_subprocesses: 0
|
||||||
enabled: 1
|
|
||||||
}
|
}
|
||||||
target:
|
target:
|
||||||
{
|
{
|
||||||
executable: "build/raddbg_server.exe"
|
executable: "build/raddbg_server.exe"
|
||||||
working_directory: build
|
working_directory: build
|
||||||
debug_subprocesses: 1
|
debug_subprocesses: 1
|
||||||
enabled: 1
|
|
||||||
}
|
}
|
||||||
target:
|
target:
|
||||||
{
|
{
|
||||||
executable: "build/metagen.exe"
|
executable: "build/metagen.exe"
|
||||||
working_directory: build
|
working_directory: build
|
||||||
|
enabled: 1
|
||||||
}
|
}
|
||||||
target:
|
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)
|
// 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(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;)
|
for(;num_servers_running > 0;)
|
||||||
{
|
{
|
||||||
// TODO(rjf)
|
// TODO(rjf)
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//- rjf: bump all debuggee state generations
|
//- rjf: bump all debuggee state generations
|
||||||
|
|||||||
+13
-12
@@ -1703,20 +1703,21 @@ di_match_artifact_create(String8 key, B32 *cancel_signal, AC_Status *status_out,
|
|||||||
RDI_SectionKind_Procedures,
|
RDI_SectionKind_Procedures,
|
||||||
RDI_SectionKind_TypeNodes,
|
RDI_SectionKind_TypeNodes,
|
||||||
};
|
};
|
||||||
Rng1U64 range = lane_range(dbgi_keys.count);
|
for EachElement(name_map_kind_idx, name_map_kinds)
|
||||||
for EachInRange(dbgi_idx, range)
|
|
||||||
{
|
{
|
||||||
DI_Key dbgi_key = dbgi_keys.v[dbgi_idx];
|
Rng1U64 range = lane_range(dbgi_keys.count);
|
||||||
if(!allow_other_dbgis && !di_key_match(preferred_key, dbgi_key))
|
for EachInRange(dbgi_idx, range)
|
||||||
{
|
{
|
||||||
continue;
|
DI_Key dbgi_key = dbgi_keys.v[dbgi_idx];
|
||||||
}
|
if(!allow_other_dbgis && !di_key_match(preferred_key, dbgi_key))
|
||||||
Access *access = access_open();
|
|
||||||
{
|
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
Access *access = access_open();
|
||||||
|
{
|
||||||
|
RDI_Parsed *rdi = di_rdi_from_key(access, dbgi_key, 0, 0);
|
||||||
|
RDI_Unit *unit = rdi_element_from_name_idx(rdi, Units, unit_idx);
|
||||||
|
|
||||||
// rjf: unpack name map
|
// rjf: unpack name map
|
||||||
RDI_NameMap *name_map = rdi_element_from_name_idx(rdi, NameMaps, name_map_kinds[name_map_kind_idx]);
|
RDI_NameMap *name_map = rdi_element_from_name_idx(rdi, NameMaps, name_map_kinds[name_map_kind_idx]);
|
||||||
RDI_ParsedNameMap parsed_name_map = {0};
|
RDI_ParsedNameMap parsed_name_map = {0};
|
||||||
@@ -1821,8 +1822,8 @@ di_match_artifact_create(String8 key, B32 *cancel_signal, AC_Status *status_out,
|
|||||||
lane_matches[lane_idx()].count = filtered_matches_count;
|
lane_matches[lane_idx()].count = filtered_matches_count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
access_close(access);
|
||||||
}
|
}
|
||||||
access_close(access);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,4 +129,5 @@ internal B32
|
|||||||
sock_endpoint_match(SOCK_Endpoint a, SOCK_Endpoint b)
|
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));
|
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