OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class MachOImageSegmentReader; | 33 class MachOImageSegmentReader; |
34 class MachOImageSymbolTableReader; | 34 class MachOImageSymbolTableReader; |
35 class ProcessReader; | 35 class ProcessReader; |
36 | 36 |
37 //! \brief A reader for Mach-O images mapped into another process. | 37 //! \brief A reader for Mach-O images mapped into another process. |
38 //! | 38 //! |
39 //! This class is capable of reading both 32-bit (`mach_header`/`MH_MAGIC`) and | 39 //! This class is capable of reading both 32-bit (`mach_header`/`MH_MAGIC`) and |
40 //! 64-bit (`mach_header_64`/`MH_MAGIC_64`) images based on the bitness of the | 40 //! 64-bit (`mach_header_64`/`MH_MAGIC_64`) images based on the bitness of the |
41 //! remote process. | 41 //! remote process. |
| 42 //! |
| 43 //! \sa MachOImageAnnotationsReader |
42 class MachOImageReader { | 44 class MachOImageReader { |
43 public: | 45 public: |
44 MachOImageReader(); | 46 MachOImageReader(); |
45 ~MachOImageReader(); | 47 ~MachOImageReader(); |
46 | 48 |
47 //! \brief Reads the Mach-O image file’s load commands from another process. | 49 //! \brief Reads the Mach-O image file’s load commands from another process. |
48 //! | 50 //! |
49 //! This method must only be called once on an object. This method must be | 51 //! This method must only be called once on an object. This method must be |
50 //! called successfully before any other method in this class may be called. | 52 //! called successfully before any other method in this class may be called. |
51 //! | 53 //! |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // set. symbol_table_initialized_ will be valid without symbol_table_ being | 336 // set. symbol_table_initialized_ will be valid without symbol_table_ being |
335 // set in modules that have no symbol table. | 337 // set in modules that have no symbol table. |
336 mutable InitializationState symbol_table_initialized_; | 338 mutable InitializationState symbol_table_initialized_; |
337 | 339 |
338 DISALLOW_COPY_AND_ASSIGN(MachOImageReader); | 340 DISALLOW_COPY_AND_ASSIGN(MachOImageReader); |
339 }; | 341 }; |
340 | 342 |
341 } // namespace crashpad | 343 } // namespace crashpad |
342 | 344 |
343 #endif // CRASHPAD_SNAPSHOT_MAC_MACH_O_IMAGE_READER_H_ | 345 #endif // CRASHPAD_SNAPSHOT_MAC_MACH_O_IMAGE_READER_H_ |
OLD | NEW |