From 6ed538324551368c118a2bb90b0db363054cc229 Mon Sep 17 00:00:00 2001 From: jimblandy Date: Wed, 23 Dec 2009 21:15:23 +0000 Subject: 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 --- src/common/linux/module.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/common/linux/module.cc b/src/common/linux/module.cc index 69bec9cd..a4cb3bfa 100644 --- a/src/common/linux/module.cc +++ b/src/common/linux/module.cc @@ -145,17 +145,17 @@ bool Module::Write(FILE *stream) { for (vector::const_iterator func_it = functions_.begin(); func_it != functions_.end(); func_it++) { Function *func = *func_it; - if (0 > fprintf(stream, "FUNC %lx %lx %lu %s\n", - (unsigned long) (func->address_ - load_address_), - (unsigned long) func->size_, - (unsigned long) func->parameter_size_, + if (0 > fprintf(stream, "FUNC %llx %llx %llx %s\n", + (unsigned long long) (func->address_ - load_address_), + (unsigned long long) func->size_, + (unsigned long long) func->parameter_size_, func->name_.c_str())) return ReportError(); for (vector::iterator line_it = func->lines_.begin(); line_it != func->lines_.end(); line_it++) - if (0 > fprintf(stream, "%lx %lx %d %d\n", - (unsigned long) (line_it->address_ - load_address_), - (unsigned long) line_it->size_, + if (0 > fprintf(stream, "%llx %llx %d %d\n", + (unsigned long long) (line_it->address_ - load_address_), + (unsigned long long) line_it->size_, line_it->number_, line_it->file_->source_id_)) return ReportError(); -- cgit v1.2.1