mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 09:18:09 +00:00
do not assume writable module
This commit is contained in:
@@ -2389,6 +2389,8 @@ d_ctrl_thread__entry_point(void *p)
|
||||
{
|
||||
String8 path = msg->path;
|
||||
D_Entity *module = d_entity_from_handle(msg->entity);
|
||||
if(module != &d_entity_nil)
|
||||
{
|
||||
D_Entity *debug_info_path = d_entity_child_from_kind(module, D_EntityKind_DebugInfoPath);
|
||||
DI_Key old_dbgi_key = di_key_from_path_timestamp(debug_info_path->string, debug_info_path->timestamp);
|
||||
di_close(old_dbgi_key, 0);
|
||||
@@ -2407,6 +2409,7 @@ d_ctrl_thread__entry_point(void *p)
|
||||
evt->string = path;
|
||||
evt->timestamp = new_dbgi_timestamp;
|
||||
d_c2u_push_events(&evts);
|
||||
}
|
||||
}break;
|
||||
case D_MsgKind_FreezeThread:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user