breakpad dumping: include pdb name if missing exe name, include pdb guid if no exe hash

This commit is contained in:
Ryan Fleury
2025-09-26 11:37:07 -07:00
parent 9ad7361cb9
commit cd7e2d3f89
6 changed files with 75 additions and 9 deletions
+8 -4
View File
@@ -133,11 +133,15 @@ struct {RDI_U8 *str; RDI_U64 size;} rdi_eval_conversion_kind_message_string_tabl
RDI_PROC RDI_U64
rdi_hash(RDI_U8 *ptr, RDI_U64 size)
{
RDI_U64 result = 5381;
RDI_U8 *opl = ptr + size;
for(;ptr < opl; ptr += 1)
RDI_U64 result = 0;
if(size != 0)
{
result = ((result << 5) + result) + *ptr;
result = 5381;
RDI_U8 *opl = ptr + size;
for(;ptr < opl; ptr += 1)
{
result = ((result << 5) + result) + *ptr;
}
}
return result;
}