OLD | NEW |
1 // Copyright (c) 2006, Google Inc. | 1 // Copyright (c) 2006, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // other CodeModule implementations may require. | 56 // other CodeModule implementations may require. |
57 explicit BasicCodeModule(const CodeModule *that) | 57 explicit BasicCodeModule(const CodeModule *that) |
58 : base_address_(that->base_address()), | 58 : base_address_(that->base_address()), |
59 size_(that->size()), | 59 size_(that->size()), |
60 code_file_(that->code_file()), | 60 code_file_(that->code_file()), |
61 code_identifier_(that->code_identifier()), | 61 code_identifier_(that->code_identifier()), |
62 debug_file_(that->debug_file()), | 62 debug_file_(that->debug_file()), |
63 debug_identifier_(that->debug_identifier()), | 63 debug_identifier_(that->debug_identifier()), |
64 version_(that->version()) {} | 64 version_(that->version()) {} |
65 | 65 |
66 BasicCodeModule(u_int64_t base_address, u_int64_t size, | 66 BasicCodeModule(uint64_t base_address, uint64_t size, |
67 const string &code_file, | 67 const string &code_file, |
68 const string &code_identifier, | 68 const string &code_identifier, |
69 const string &debug_file, | 69 const string &debug_file, |
70 const string &debug_identifier, | 70 const string &debug_identifier, |
71 const string &version) | 71 const string &version) |
72 : base_address_(base_address), | 72 : base_address_(base_address), |
73 size_(size), | 73 size_(size), |
74 code_file_(code_file), | 74 code_file_(code_file), |
75 code_identifier_(code_identifier), | 75 code_identifier_(code_identifier), |
76 debug_file_(debug_file), | 76 debug_file_(debug_file), |
77 debug_identifier_(debug_identifier), | 77 debug_identifier_(debug_identifier), |
78 version_(version) | 78 version_(version) |
79 {} | 79 {} |
80 virtual ~BasicCodeModule() {} | 80 virtual ~BasicCodeModule() {} |
81 | 81 |
82 // See code_module.h for descriptions of these methods and the associated | 82 // See code_module.h for descriptions of these methods and the associated |
83 // members. | 83 // members. |
84 virtual u_int64_t base_address() const { return base_address_; } | 84 virtual uint64_t base_address() const { return base_address_; } |
85 virtual u_int64_t size() const { return size_; } | 85 virtual uint64_t size() const { return size_; } |
86 virtual string code_file() const { return code_file_; } | 86 virtual string code_file() const { return code_file_; } |
87 virtual string code_identifier() const { return code_identifier_; } | 87 virtual string code_identifier() const { return code_identifier_; } |
88 virtual string debug_file() const { return debug_file_; } | 88 virtual string debug_file() const { return debug_file_; } |
89 virtual string debug_identifier() const { return debug_identifier_; } | 89 virtual string debug_identifier() const { return debug_identifier_; } |
90 virtual string version() const { return version_; } | 90 virtual string version() const { return version_; } |
91 virtual const CodeModule* Copy() const { return new BasicCodeModule(this); } | 91 virtual const CodeModule* Copy() const { return new BasicCodeModule(this); } |
92 | 92 |
93 private: | 93 private: |
94 u_int64_t base_address_; | 94 uint64_t base_address_; |
95 u_int64_t size_; | 95 uint64_t size_; |
96 string code_file_; | 96 string code_file_; |
97 string code_identifier_; | 97 string code_identifier_; |
98 string debug_file_; | 98 string debug_file_; |
99 string debug_identifier_; | 99 string debug_identifier_; |
100 string version_; | 100 string version_; |
101 | 101 |
102 // Disallow copy constructor and assignment operator. | 102 // Disallow copy constructor and assignment operator. |
103 BasicCodeModule(const BasicCodeModule &that); | 103 BasicCodeModule(const BasicCodeModule &that); |
104 void operator=(const BasicCodeModule &that); | 104 void operator=(const BasicCodeModule &that); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace google_breakpad | 107 } // namespace google_breakpad |
108 | 108 |
109 #endif // PROCESSOR_BASIC_CODE_MODULE_H__ | 109 #endif // PROCESSOR_BASIC_CODE_MODULE_H__ |
OLD | NEW |