aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-02-09 17:13:17 +0000
committerjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-02-09 17:13:17 +0000
commit952f3c7b7382b02e18c4bc70baa59751105786db (patch)
tree71868c73423058e73a93e30485cd26d1f292d659 /src/tools
parentBreakpad Linux dumper: Add file comments as required by the style guide. (diff)
downloadbreakpad-952f3c7b7382b02e18c4bc70baa59751105786db.tar.xz
Breakpad Linux dumper: Don't be silly about global functions.
Yes, classes are useful. But that doesn't mean that every function has to gratuitously become a member function. The Google C++ Style Guide does not require this silliness, since the function is in the google_breakpad namespace anyway. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@519 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/linux/dump_syms/dump_syms.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tools/linux/dump_syms/dump_syms.cc b/src/tools/linux/dump_syms/dump_syms.cc
index f75abef8..9667b38d 100644
--- a/src/tools/linux/dump_syms/dump_syms.cc
+++ b/src/tools/linux/dump_syms/dump_syms.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006, Google Inc.
+// Copyright (c) 2010, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -36,14 +36,13 @@ using namespace google_breakpad;
int main(int argc, char **argv) {
if (argc != 2) {
- fprintf(stderr, "Usage: %s <binary-with-stab-symbol>\n", argv[0]);
+ fprintf(stderr, "Usage: %s <binary-with-debugging-info>\n", argv[0]);
return 1;
}
const char *binary = argv[1];
- DumpSymbols dumper;
- if (!dumper.WriteSymbolFile(binary, stdout)) {
+ if (!WriteSymbolFile(binary, stdout)) {
fprintf(stderr, "Failed to write symbol file.\n");
return 1;
}