aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux
diff options
context:
space:
mode:
authorjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 21:15:23 +0000
committerjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 21:15:23 +0000
commit6ed538324551368c118a2bb90b0db363054cc229 (patch)
treec433a9202f37f39442b53b5f47679f975ecd29fd /src/common/linux
parentBreakpad Linux dumper: move DumpStabsHandler into its own file, for testing. (diff)
downloadbreakpad-6ed538324551368c118a2bb90b0db363054cc229.tar.xz
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
Diffstat (limited to 'src/common/linux')
-rw-r--r--src/common/linux/module.cc14
1 files changed, 7 insertions, 7 deletions
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<Function *>::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<Line>::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();