Files
neil henning 97a760cc05 Build BreakpadSymbolEncoder via UBT and make it ignore INLINE lines in the psym inputs.
#rb Brandon.Schaefer

[CL 33507547 by neil henning in ue5-main branch]
2024-05-08 03:54:28 -04:00

44 lines
980 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
/* The output files are packed in this ordered:
*
* RecordsHeader
* Records
* File strings
* Symbol strings
*
* Start of strings section:
* RecordsHeader::RecordCount * sizeof(Record) + sizeof(RecordHeader);
*
*/
#include <stdint.h>
#pragma pack(push, 1)
struct RecordsHeader
{
/* The number of Records encoded in the output file */
uint32_t RecordCount;
};
struct Record
{
/* The Address of the Symbol */
uint64_t Address;
/* The Line number of the symbol in the File */
uint32_t LineNumber;
/* The Relative Offset in bytes from the start of the strings to the start of the File name in the output file */
uint32_t FileRelativeOffset;
/* The Relative Offset in bytes from the start of the strings to the start of the Symbol name in the output file */
uint32_t SymbolRelativeOffset;
friend bool operator<(const Record& A, const Record& B)
{
return A.Address < B.Address;
}
};
#pragma pack(pop)