tkeys list still not working

This commit is contained in:
silverweed 2024-09-27 17:18:03 +02:00
parent 76d5cdf433
commit 7be716aa5e
2 changed files with 5 additions and 2 deletions

View file

@ -882,7 +882,7 @@ struct Sec_Hover_Fn {
range("Payload", section.range.len - section.post_size - sizeof(u64) - 1); range("Payload", section.range.len - section.post_size - sizeof(u64) - 1);
} else { } else {
envelope_preamble(); envelope_preamble();
// NOTE: flags in principle require a more complex handling, but for now they are unused, // TODO: flags in principle require a more complex handling, but for now they are unused,
// so they're always occupying only 8 bytes. // so they're always occupying only 8 bytes.
field_le<u64>("Flags: 0x%" PRIX64); field_le<u64>("Flags: 0x%" PRIX64);
field_le<u64>("Header checksum: 0x%" PRIX64); field_le<u64>("Header checksum: 0x%" PRIX64);
@ -999,6 +999,7 @@ Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, co
break; break;
case Sec_TKey_List: case Sec_TKey_List:
printf("0x%lX - 0x%lX (pre %lu)\n", section.range.start, section.range.end(), section.pre_size);
hover.tkey_list(); hover.tkey_list();
break; break;

View file

@ -618,7 +618,9 @@ Section find_section(App_State &app, u64 off, i64 hilite_cluster = -1)
if (rdata.rng_tkeys_list.start <= off && off < rdata.rng_tkeys_list.end()) { if (rdata.rng_tkeys_list.start <= off && off < rdata.rng_tkeys_list.end()) {
sec.id = Sec_TKey_List; sec.id = Sec_TKey_List;
sec.range = rdata.rng_tkeys_list; sec.range = rdata.rng_tkeys_list;
sec.pre_size = rblob_sz; // FIXME!
// sec.range.len += rblob_sz;
// printf("with rblob_sz: 0x%lX\n", sec.range.end());
return sec; return sec;
} }