mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-07-17 23:27:49 +00:00
Breakpad Linux Dumper: Use proper sizes and radixes when writing Breakpad symbol files.
A FUNC record's parameter size is also hexadecimal, and all values are 64 bits wide. A line record's address and size are 64 bits wide. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@465 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
5a6e1d3f03
commit
6ed5383245
|
@ -145,17 +145,17 @@ bool Module::Write(FILE *stream) {
|
||||||
for (vector<Function *>::const_iterator func_it = functions_.begin();
|
for (vector<Function *>::const_iterator func_it = functions_.begin();
|
||||||
func_it != functions_.end(); func_it++) {
|
func_it != functions_.end(); func_it++) {
|
||||||
Function *func = *func_it;
|
Function *func = *func_it;
|
||||||
if (0 > fprintf(stream, "FUNC %lx %lx %lu %s\n",
|
if (0 > fprintf(stream, "FUNC %llx %llx %llx %s\n",
|
||||||
(unsigned long) (func->address_ - load_address_),
|
(unsigned long long) (func->address_ - load_address_),
|
||||||
(unsigned long) func->size_,
|
(unsigned long long) func->size_,
|
||||||
(unsigned long) func->parameter_size_,
|
(unsigned long long) func->parameter_size_,
|
||||||
func->name_.c_str()))
|
func->name_.c_str()))
|
||||||
return ReportError();
|
return ReportError();
|
||||||
for (vector<Line>::iterator line_it = func->lines_.begin();
|
for (vector<Line>::iterator line_it = func->lines_.begin();
|
||||||
line_it != func->lines_.end(); line_it++)
|
line_it != func->lines_.end(); line_it++)
|
||||||
if (0 > fprintf(stream, "%lx %lx %d %d\n",
|
if (0 > fprintf(stream, "%llx %llx %d %d\n",
|
||||||
(unsigned long) (line_it->address_ - load_address_),
|
(unsigned long long) (line_it->address_ - load_address_),
|
||||||
(unsigned long) line_it->size_,
|
(unsigned long long) line_it->size_,
|
||||||
line_it->number_,
|
line_it->number_,
|
||||||
line_it->file_->source_id_))
|
line_it->file_->source_id_))
|
||||||
return ReportError();
|
return ReportError();
|
||||||
|
|
Loading…
Reference in a new issue