mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-03 00:54:25 +01:00
Updating to ints from unsigned ints so -1 will be an acceptable value.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@777 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
248d340b71
commit
68b256aed3
@ -204,7 +204,7 @@ LinuxDumper::BuildProcPath(char* path, pid_t pid, const char* node) const {
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
LinuxDumper::ElfFileIdentifierForMapping(const MappingInfo& mapping,
|
LinuxDumper::ElfFileIdentifierForMapping(const MappingInfo& mapping,
|
||||||
unsigned int mapping_id,
|
int mapping_id,
|
||||||
uint8_t identifier[sizeof(MDGUID)])
|
uint8_t identifier[sizeof(MDGUID)])
|
||||||
{
|
{
|
||||||
assert(mapping_id == -1 || mapping_id < mappings_.size());
|
assert(mapping_id == -1 || mapping_id < mappings_.size());
|
||||||
|
@ -154,7 +154,7 @@ class LinuxDumper {
|
|||||||
// Generate a File ID from the .text section of a mapped entry.
|
// Generate a File ID from the .text section of a mapped entry.
|
||||||
// mapping_id may be -1 if this is not a member of mappings_.
|
// mapping_id may be -1 if this is not a member of mappings_.
|
||||||
bool ElfFileIdentifierForMapping(const MappingInfo& mapping,
|
bool ElfFileIdentifierForMapping(const MappingInfo& mapping,
|
||||||
unsigned int mapping_id,
|
int mapping_id,
|
||||||
uint8_t identifier[sizeof(MDGUID)]);
|
uint8_t identifier[sizeof(MDGUID)]);
|
||||||
|
|
||||||
// Utility method to find the location of where the kernel has
|
// Utility method to find the location of where the kernel has
|
||||||
|
@ -820,10 +820,9 @@ class MinidumpWriter {
|
|||||||
|
|
||||||
// Fill the MDRawModule |mod| with information about the provided
|
// Fill the MDRawModule |mod| with information about the provided
|
||||||
// |mapping|. If |identifier| is non-NULL, use it instead of calculating
|
// |mapping|. If |identifier| is non-NULL, use it instead of calculating
|
||||||
// a file ID from the mapping. |mapping_id| can be -1 if this mapping
|
// a file ID from the mapping. |mapping_id| can be -1.
|
||||||
// is not from the LinuxDumper.
|
|
||||||
bool FillRawModule(const MappingInfo& mapping,
|
bool FillRawModule(const MappingInfo& mapping,
|
||||||
unsigned int mapping_id,
|
int mapping_id,
|
||||||
MDRawModule& mod,
|
MDRawModule& mod,
|
||||||
const u_int8_t* identifier) {
|
const u_int8_t* identifier) {
|
||||||
my_memset(&mod, 0, MD_MODULE_SIZE);
|
my_memset(&mod, 0, MD_MODULE_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user