mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-12 16:38:08 +00:00
adjust rules for text view loading; handle non-evaluations / empty evaluations correctly
This commit is contained in:
@@ -12483,6 +12483,10 @@ rd_frame(void)
|
|||||||
C_ID id = {u128_hash_from_str8(output_label_string)};
|
C_ID id = {u128_hash_from_str8(output_label_string)};
|
||||||
C_Key key = c_key_make(d_user_state->output_log_root, id);
|
C_Key key = c_key_make(d_user_state->output_log_root, id);
|
||||||
U128 hash = c_hash_from_key(key, 0);
|
U128 hash = c_hash_from_key(key, 0);
|
||||||
|
if(u128_match(hash, u128_zero()))
|
||||||
|
{
|
||||||
|
c_submit_data(key, 0, s(""));
|
||||||
|
}
|
||||||
String8 data = c_data_from_hash(access, hash);
|
String8 data = c_data_from_hash(access, hash);
|
||||||
E_Space space = e_space_make(E_SpaceKind_HashStoreKey);
|
E_Space space = e_space_make(E_SpaceKind_HashStoreKey);
|
||||||
space.u64_0 = key.root.u64[0];
|
space.u64_0 = key.root.u64[0];
|
||||||
|
|||||||
@@ -2181,7 +2181,8 @@ RD_VIEW_UI_FUNCTION_DEF(text)
|
|||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
//- rjf: code is not missing, but not ready -> equip loading info to this view
|
//- rjf: code is not missing, but not ready -> equip loading info to this view
|
||||||
//
|
//
|
||||||
if(!file_is_missing && info.lines_count == 0 && eval.msgs.max_kind == E_MsgKind_Null)
|
B32 is_loading = (!file_is_missing && info.lines_count == 0 && eval.msgs.max_kind == E_MsgKind_Null && eval.space.kind != E_SpaceKind_Null);
|
||||||
|
if(is_loading)
|
||||||
{
|
{
|
||||||
rd_store_view_loading_info(1, info.bytes_processed, info.bytes_to_process);
|
rd_store_view_loading_info(1, info.bytes_processed, info.bytes_to_process);
|
||||||
}
|
}
|
||||||
@@ -2189,7 +2190,7 @@ RD_VIEW_UI_FUNCTION_DEF(text)
|
|||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
//- rjf: build code contents
|
//- rjf: build code contents
|
||||||
//
|
//
|
||||||
if(!file_is_missing)
|
if(!file_is_missing && eval.space.kind != E_SpaceKind_Null)
|
||||||
{
|
{
|
||||||
RD_CodeViewBuildFlags flags = RD_CodeViewBuildFlag_All;
|
RD_CodeViewBuildFlags flags = RD_CodeViewBuildFlag_All;
|
||||||
if(rd_regs()->file_path.size == 0)
|
if(rd_regs()->file_path.size == 0)
|
||||||
|
|||||||
@@ -3024,7 +3024,10 @@ txt_text_info_from_key_lang(Access *access, C_Key key, TXT_LangKind lang, U128 *
|
|||||||
for(U64 rewind_idx = 0; rewind_idx < C_KEY_HASH_HISTORY_COUNT; rewind_idx += 1)
|
for(U64 rewind_idx = 0; rewind_idx < C_KEY_HASH_HISTORY_COUNT; rewind_idx += 1)
|
||||||
{
|
{
|
||||||
U128 hash = c_hash_from_key(key, rewind_idx);
|
U128 hash = c_hash_from_key(key, rewind_idx);
|
||||||
|
if(!u128_match(hash, u128_zero()))
|
||||||
|
{
|
||||||
result = txt_text_info_from_hash_lang(access, hash, lang);
|
result = txt_text_info_from_hash_lang(access, hash, lang);
|
||||||
|
}
|
||||||
if(result.lines_count != 0)
|
if(result.lines_count != 0)
|
||||||
{
|
{
|
||||||
if(hash_out)
|
if(hash_out)
|
||||||
|
|||||||
Reference in New Issue
Block a user