Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: snapshot/mac/mach_o_image_reader.h

Issue 651283003: Add crashpad_info, MachOImageAnnotationsReader, and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rebase onto master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « snapshot/mac/mach_o_image_annotations_reader_test.cc ('k') | snapshot/mac/process_reader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « snapshot/mac/mach_o_image_annotations_reader_test.cc ('k') | snapshot/mac/process_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698