mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-27 00:02:19 -08:00
do not output nil file in breakpad output
This commit is contained in:
1 parent
1673303d56
commit
c762d1cd71
1 file changed
+10
-7
+10
-7
@@ -1118,14 +1118,17 @@ rb_thread_entry_point(void *p)
|
|||||||
{
|
{
|
||||||
U64 count = 0;
|
U64 count = 0;
|
||||||
RDI_SourceFile *v = rdi_table_from_name(rdi, SourceFiles, &count);
|
RDI_SourceFile *v = rdi_table_from_name(rdi, SourceFiles, &count);
|
||||||
Rng1U64 range = lane_range(count);
|
if(count > 0)
|
||||||
for EachInRange(idx, range)
|
|
||||||
{
|
{
|
||||||
String8List *out = &p2b_shared->lane_file_dumps[lane_idx()];
|
Rng1U64 range = lane_range(count-1);
|
||||||
Temp scratch = scratch_begin(&arena, 1);
|
for EachInRange(idx, range)
|
||||||
String8 src_path = str8_from_rdi_path_node_idx(scratch.arena, rdi, PathStyle_Relative, v[idx].file_path_node_idx);
|
{
|
||||||
str8_list_pushf(arena, out, "FILE %I64u %S\n", idx, src_path);
|
String8List *out = &p2b_shared->lane_file_dumps[lane_idx()];
|
||||||
scratch_end(scratch);
|
Temp scratch = scratch_begin(&arena, 1);
|
||||||
|
String8 src_path = str8_from_rdi_path_node_idx(scratch.arena, rdi, PathStyle_Relative, v[idx+1].file_path_node_idx);
|
||||||
|
str8_list_pushf(arena, out, "FILE %I64u %S\n", idx+1, src_path);
|
||||||
|
scratch_end(scratch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user