Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Side by Side Diff: src/common/mac/dump_syms.h

Issue 130001: Cleans up mac projects, and builds everything 64 bit (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Added a few more unittests, and cleaned them up as well. Created 14 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 // -*- mode: c++ -*- 1 // -*- mode: c++ -*-
2 2
3 // Copyright (c) 2010, Google Inc. 3 // Copyright (c) 2010, Google Inc.
4 // All rights reserved. 4 // All rights reserved.
5 // 5 //
6 // Redistribution and use in source and binary forms, with or without 6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are 7 // modification, are permitted provided that the following conditions are
8 // met: 8 // met:
9 // 9 //
10 // * Redistributions of source code must retain the above copyright 10 // * Redistributions of source code must retain the above copyright
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // If this dumper's file includes an object file for |cpu_type| and 76 // If this dumper's file includes an object file for |cpu_type| and
77 // |cpu_subtype|, then select that object file for dumping, and return 77 // |cpu_subtype|, then select that object file for dumping, and return
78 // true. Otherwise, return false, and leave this dumper's selected 78 // true. Otherwise, return false, and leave this dumper's selected
79 // architecture unchanged. 79 // architecture unchanged.
80 // 80 //
81 // By default, if this dumper's file contains only one object file, then 81 // By default, if this dumper's file contains only one object file, then
82 // the dumper will dump those symbols; and if it contains more than one 82 // the dumper will dump those symbols; and if it contains more than one
83 // object file, then the dumper will dump the object file whose 83 // object file, then the dumper will dump the object file whose
84 // architecture matches that of this dumper program. 84 // architecture matches that of this dumper program.
85 bool SetArchitecture(cpu_type_t cpu_type, cpu_subtype_t cpu_subtype); 85 bool SetArchitecture(cpu_type_t cpu_type, cpu_subtype_t cpu_subtype);
86 86
87
Mark Mentovai 2010/07/16 21:36:55 Excess vertical whitespace.
dmaclach 2010/07/16 22:56:46 Done.
88 // If this dumper's file includes an object file for |arch_name|, then select
89 // that object file for dumping, and return true. Otherwise, return false,
90 // and leave this dumper's selected architecture unchanged.
91 //
92 // By default, if this dumper's file contains only one object file, then
93 // the dumper will dump those symbols; and if it contains more than one
94 // object file, then the dumper will dump the object file whose
95 // architecture matches that of this dumper program.
96 bool SetArchitecture(const std::string &arch_name);
97
87 // Return a pointer to an array of 'struct fat_arch' structures, 98 // Return a pointer to an array of 'struct fat_arch' structures,
88 // describing the object files contained in this dumper's file. Set 99 // describing the object files contained in this dumper's file. Set
89 // *|count| to the number of elements in the array. The returned array is 100 // *|count| to the number of elements in the array. The returned array is
90 // owned by this DumpSymbols instance. 101 // owned by this DumpSymbols instance.
91 // 102 //
92 // If there are no available architectures, this function 103 // If there are no available architectures, this function
93 // may return NULL. 104 // may return NULL.
94 const struct fat_arch *AvailableArchitectures(size_t *count) { 105 const struct fat_arch *AvailableArchitectures(size_t *count) {
95 *count = object_files_.size(); 106 *count = object_files_.size();
96 if (object_files_.size() > 0) 107 if (object_files_.size() > 0)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const struct fat_arch *selected_object_file_; 163 const struct fat_arch *selected_object_file_;
153 164
154 // A string that identifies the selected object file, for use in error 165 // A string that identifies the selected object file, for use in error
155 // messages. This is usually object_filename_, but if that refers to a 166 // messages. This is usually object_filename_, but if that refers to a
156 // fat binary, it includes an indication of the particular architecture 167 // fat binary, it includes an indication of the particular architecture
157 // within that binary. 168 // within that binary.
158 string selected_object_name_; 169 string selected_object_name_;
159 }; 170 };
160 171
161 } // namespace google_breakpad 172 } // namespace google_breakpad
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted