/external/llvm-project/llvm/include/llvm/ObjectYAML/ |
D | MinidumpYAML.h | 1 //===- MinidumpYAML.h - Minidump YAMLIO implementation ----------*- C++ -*-===// 12 #include "llvm/BinaryFormat/Minidump.h" 13 #include "llvm/Object/Minidump.h" 20 /// The base class for all minidump streams. The "Type" of the stream 21 /// corresponds to the Stream Type field in the minidump file. The "Kind" field 39 Stream(StreamKind Kind, minidump::StreamType Type) : Kind(Kind), Type(Type) {} in Stream() 43 const minidump::StreamType Type; 46 static StreamKind getKind(minidump::StreamType Type); 49 static std::unique_ptr<Stream> create(minidump::StreamType Type); 53 create(const minidump::Directory &StreamDesc, [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ObjectYAML/ |
D | MinidumpYAML.h | 1 //===- MinidumpYAML.h - Minidump YAMLIO implementation ----------*- C++ -*-===// 12 #include "llvm/BinaryFormat/Minidump.h" 13 #include "llvm/Object/Minidump.h" 20 /// The base class for all minidump streams. The "Type" of the stream 21 /// corresponds to the Stream Type field in the minidump file. The "Kind" field 39 Stream(StreamKind Kind, minidump::StreamType Type) : Kind(Kind), Type(Type) {} in Stream() 43 const minidump::StreamType Type; 46 static StreamKind getKind(minidump::StreamType Type); 49 static std::unique_ptr<Stream> create(minidump::StreamType Type); 53 create(const minidump::Directory &StreamDesc, [all …]
|
/external/google-breakpad/src/google_breakpad/processor/ |
D | minidump.h | 30 // minidump.h: A minidump reader. 32 // The basic structure of this module tracks the structure of the minidump 33 // file itself. At the top level, a minidump file is represented by a 34 // Minidump object. Like most other classes in this module, Minidump 37 // "raw" structures found in the minidump file itself, and defined in 43 // Most of the module lazily reads only the portion of the minidump file 44 // necessary to fulfill the user's request. Calling Minidump::Read 45 // only reads the minidump's directory. The thread list is not read until 50 // minidump file are not particularly large, it is possible for legitimate 51 // minidumps to be sizable. A full-memory minidump, for example, contains [all …]
|
D | minidump_processor.h | 42 class Minidump; variable 72 // Processes the minidump file and fills process_state with the result. 76 // Processes the minidump structure and fills process_state with the 78 ProcessResult Process(Minidump* minidump, 81 // representations of the CPU type that the minidump in |dump| was 83 // the minidump. 84 static bool GetCPUInfo(Minidump* dump, SystemInfo* info); 87 // representations of the operating system that the minidump in |dump| 89 // the minidump. 90 static bool GetOSInfo(Minidump* dump, SystemInfo* info); [all …]
|
/external/google-breakpad/src/processor/ |
D | minidump_dump.cc | 30 // minidump_dump.cc: Print the contents of a minidump file in somewhat 40 #include "google_breakpad/processor/minidump.h" 45 using google_breakpad::Minidump; 66 static void DumpRawStream(Minidump *minidump, in DumpRawStream() argument 71 if (!minidump->SeekToStreamType(stream_type, &length)) { in DumpRawStream() 82 if (!minidump->ReadBytes(&contents[0], length)) { in DumpRawStream() 84 BPLOG(ERROR) << "minidump.ReadBytes failed"; in DumpRawStream() 106 Minidump minidump(options.minidumpPath, in PrintMinidumpDump() local 108 if (!minidump.Read()) { in PrintMinidumpDump() 109 BPLOG(ERROR) << "minidump.Read() failed"; in PrintMinidumpDump() [all …]
|
D | minidump_unittest.cc | 30 // Unit test for Minidump. Uses a pre-generated minidump and 43 #include "google_breakpad/processor/minidump.h" 49 using google_breakpad::Minidump; 91 Minidump minidump(minidump_file_); in TEST_F() local 92 ASSERT_EQ(minidump.path(), minidump_file_); in TEST_F() 93 ASSERT_TRUE(minidump.Read()); in TEST_F() 94 const MDRawHeader* header = minidump.header(); in TEST_F() 98 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST_F() 109 // read minidump contents into memory, construct a stringstream around them in TEST_F() 124 // now read minidump from stringstream in TEST_F() [all …]
|
D | synth_minidump.h | 34 // synth_minidump.h: Interface to SynthMinidump: fake minidump generator. 36 // We treat a minidump file as the concatenation of a bunch of 39 // that eventually gets appended to the minidump. Dump, Memory, 49 // Dump minidump(MD_NORMAL, kLittleEndian); 51 // Memory stack1(minidump, 0x569eb0a9); 59 // Context context1(minidump, x86_context1); 61 // Thread thread1(minidump, 0xe4a4821d, stack1, context1); 63 // minidump.Add(&stack1); 64 // minidump.Add(&context1); 65 // minidump.Add(&thread1); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | Minidump.h | 1 //===- Minidump.h - Minidump object file implementation ---------*- C++ -*-===// 15 #include "llvm/BinaryFormat/Minidump.h" 22 /// A class providing access to the contents of a minidump file. 26 /// an error if this file cannot be identified as a minidump file, or if its 32 /// Returns the contents of the minidump header. 33 const minidump::Header &header() const { return Header; } in header() 36 ArrayRef<minidump::Directory> streams() const { return Streams; } in streams() 39 ArrayRef<uint8_t> getRawStream(const minidump::Directory &Stream) const { in getRawStream() 45 Optional<ArrayRef<uint8_t>> getRawStream(minidump::StreamType Type) const; 48 /// error is returned if the descriptor points outside of the minidump file. [all …]
|
/external/llvm-project/llvm/include/llvm/Object/ |
D | Minidump.h | 1 //===- Minidump.h - Minidump object file implementation ---------*- C++ -*-===// 15 #include "llvm/BinaryFormat/Minidump.h" 22 /// A class providing access to the contents of a minidump file. 26 /// an error if this file cannot be identified as a minidump file, or if its 32 /// Returns the contents of the minidump header. 33 const minidump::Header &header() const { return Header; } in header() 36 ArrayRef<minidump::Directory> streams() const { return Streams; } in streams() 39 ArrayRef<uint8_t> getRawStream(const minidump::Directory &Stream) const { in getRawStream() 45 Optional<ArrayRef<uint8_t>> getRawStream(minidump::StreamType Type) const; 48 /// error is returned if the descriptor points outside of the minidump file. [all …]
|
/external/google-breakpad/src/client/mac/tests/ |
D | exception_handler_test.cc | 42 #include "google_breakpad/processor/minidump.h" 58 using google_breakpad::Minidump; 121 // Wait for the background process to return the minidump file. in InProcessCrash() 127 Minidump minidump(minidump_file); in InProcessCrash() local 128 ASSERT_TRUE(minidump.Read()); in InProcessCrash() 130 MinidumpException* exception = minidump.GetException(); in InProcessCrash() 161 MinidumpMemoryList* memory_list = minidump.GetMemoryList(); in InProcessCrash() 199 // Ensure that minidump file exists and is > 0 bytes. in TEST_F() 205 // The minidump should not contain an exception stream. in TEST_F() 206 Minidump minidump(lastDumpName); in TEST_F() local [all …]
|
D | minidump_generator_test.cc | 48 #include "google_breakpad/processor/minidump.h" 65 using google_breakpad::Minidump; 102 // Ensure that minidump file exists and is > 0 bytes. in TEST_F() 111 // Read the minidump, sanity check some data. in TEST_F() 112 Minidump minidump(dump_filename.c_str()); in TEST_F() local 113 ASSERT_TRUE(minidump.Read()); in TEST_F() 115 MinidumpSystemInfo* system_info = minidump.GetSystemInfo(); in TEST_F() 121 MinidumpThreadList* thread_list = minidump.GetThreadList(); in TEST_F() 131 MinidumpModuleList* module_list = minidump.GetModuleList(); in TEST_F() 181 // Write a minidump of the child process. in TEST_F() [all …]
|
D | crash_generation_server_test.cc | 48 #include "google_breakpad/processor/minidump.h" 64 using google_breakpad::Minidump; 141 // check that no minidump was written in TEST_F() 167 // Test that actually writing a minidump works 199 // check that minidump was written in TEST_F() 216 // results in a minidump being written by the CrashGenerationServer in 244 // check that minidump was written in TEST_F() 250 // Read the minidump, sanity check some data. in TEST_F() 251 Minidump minidump(last_dump_name.c_str()); in TEST_F() local 252 ASSERT_TRUE(minidump.Read()); in TEST_F() [all …]
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | minidump_writer_unittest.cc | 54 #include "google_breakpad/processor/minidump.h" 62 const char kMDWriterUnitTestFileName[] = "/minidump-writer-unittest"; 125 // Test that mapping info can be specified when writing a minidump, 126 // and that it ends up in the module list of the minidump. 132 // data from the minidump afterwards. in TEST() 187 // Read the minidump. Load the module list, and ensure that in TEST() 190 Minidump minidump(templ); in TEST() local 191 ASSERT_TRUE(minidump.Read()); in TEST() 193 MinidumpModuleList* module_list = minidump.GetModuleList(); in TEST() 206 EXPECT_TRUE(minidump.SeekToStreamType(MD_THREAD_LIST_STREAM, &len)); in TEST() [all …]
|
/external/google-breakpad/docs/ |
D | getting_started_with_breakpad.md | 5 record crashes in compact "minidump" files, send them back to your server, and 17 write minidump files capturing the current threads' state and the identities 19 the client to write a minidump when a crash occurs, or when explicitly 26 * The **processor** is a program that reads a minidump file, finds the 28 libraries the minidump mentions, and produces a human-readable C/C++ stack 31 # The minidump file format 33 The minidump file format is similar to core files but was developed by Microsoft 34 for its crash-uploading facility. A minidump file contains: 40 * A list of threads present in the process. For each thread, the minidump 49 Breakpad uses Windows minidump files on all platforms, instead of the [all …]
|
/external/llvm-project/llvm/include/llvm/BinaryFormat/ |
D | Minidump.h | 1 //===- Minidump.h - Minidump constants and structures -----------*- C++ -*-===// 9 // This header constants and data structures pertaining to the Windows Minidump 26 namespace minidump { 30 /// The minidump header is the first part of a minidump file. It identifies the 31 /// file as a minidump file, and gives the location of the stream directory. 48 /// The type of a minidump stream identifies its contents. Streams numbers after 57 /// Specifies the location (and size) of various objects in the minidump file. 66 /// the file) of the process from which this minidump file was generated. 117 /// Specifies the location and type of a single stream in the minidump file. The 118 /// minidump stream directory is an array of entries of this type, with its size [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/ |
D | Minidump.h | 1 //===- Minidump.h - Minidump constants and structures -----------*- C++ -*-===// 9 // This header constants and data structures pertaining to the Windows Minidump 26 namespace minidump { 30 /// The minidump header is the first part of a minidump file. It identifies the 31 /// file as a minidump file, and gives the location of the stream directory. 48 /// The type of a minidump stream identifies its contents. Streams numbers after 57 /// Specifies the location (and size) of various objects in the minidump file. 66 /// the file) of the process from which this minidump file was generated. 117 /// Specifies the location and type of a single stream in the minidump file. The 118 /// minidump stream directory is an array of entries of this type, with its size [all …]
|
/external/google-breakpad/src/client/mac/handler/ |
D | exception_handler.h | 32 // programming errors. If an exception occurs, a minidump file will be 71 // a minidump. context is the parameter supplied by the user as 75 // attempting to write a minidump. If a FilterCallback returns false, Breakpad 77 // minidump, allowing another handler the opportunity to handle it. 80 // A callback function to run after the minidump has been written. 81 // |minidump_id| is a unique id for the dump, so the minidump 84 // |succeeded| indicates whether a minidump file was successfully written. 93 // This bypasses the minidump file writing and simply gives the client 102 // Minidump files will be written to dump_path, and the optional callback 104 // If install_handler is true, then a minidump will be written whenever [all …]
|
/external/google-breakpad/src/client/ios/ |
D | exception_handler_no_mach.h | 49 // a minidump. context is the parameter supplied by the user as 53 // attempting to write a minidump. If a FilterCallback returns false, Breakpad 55 // minidump, allowing another handler the opportunity to handle it. 58 // A callback function to run after the minidump has been written. 59 // |minidump_id| is a unique id for the dump, so the minidump 62 // |succeeded| indicates whether a minidump file was successfully written. 71 // This bypasses the minidump file writing and simply gives the client 80 // Minidump files will be written to dump_path, and the optional callback 82 // If install_handler is true, then a minidump will be written whenever 92 // A special constructor if we want to bypass minidump writing and [all …]
|
/external/autotest/server/ |
D | site_crashcollect.py | 25 Generates a stacktrace for the specified minidump. 30 @param minidump_path: absolute path to minidump to by symbolicated. 63 Generates a stack trace for the specified minidump by consulting devserver. 67 @param minidump_path: absolute path to minidump to by symbolicated. 92 def generate_stacktrace_for_file(minidump, host_resultdir): argument 94 Tries to generate a stack trace for the file located at |minidump|. 95 @param minidump: path to minidump file to generate the stacktrace for. 100 logging.info('Trying to generate stack trace locally for %s', minidump) 101 generate_minidump_stacktrace(minidump) 102 logging.info('Generated stack trace for dump %s', minidump) [all …]
|
/external/google-breakpad/src/client/linux/handler/ |
D | exception_handler_unittest.cc | 54 #include "google_breakpad/processor/minidump.h" 136 // Reads the minidump path sent over the pipe |fd| and sets it in |path|. 576 // data from the minidump afterwards. in TEST() 598 // of the block of memory, because the minidump should contain 128 in TEST() 620 // Read the minidump. Locate the exception record and the in TEST() 624 Minidump minidump(minidump_path); in TEST() local 625 ASSERT_TRUE(minidump.Read()); in TEST() 627 MinidumpException* exception = minidump.GetException(); in TEST() 628 MinidumpMemoryList* memory_list = minidump.GetMemoryList(); in TEST() 668 // data from the minidump afterwards. in TEST() [all …]
|
D | exception_handler.h | 51 // ExceptionHandler can write a minidump file when an exception occurs, 64 // use different minidump callbacks for different call sites. 66 // In either case, a callback function is called when a minidump is written, 67 // which receives the full path or file descriptor of the minidump. The 68 // caller can collect and write additional application state to that minidump, 78 // a minidump. |context| is the parameter supplied by the user as 82 // attempting to write a minidump. If a FilterCallback returns false, 84 // writing a minidump, allowing another handler the opportunity to handle it. 87 // A callback function to run after the minidump has been written. 89 // minidump. |context| is the parameter supplied by the user as [all …]
|
/external/google-breakpad/src/client/solaris/handler/ |
D | exception_handler.h | 48 // ExceptionHandler can write a minidump file when an exception occurs, 61 // use different minidump callbacks for different call sites. 63 // In either case, a callback function is called when a minidump is written, 64 // which receives the unqiue id of the minidump. The caller can use this 75 // a minidump. context is the parameter supplied by the user as 79 // attempting to write a minidump. If a FilterCallback returns false, 81 // writing a minidump, allowing another handler the opportunity to handle it. 84 // A callback function to run after the minidump has been written. 85 // minidump_id is a unique id for the dump, so the minidump 88 // indicates whether a minidump file was successfully written. [all …]
|
/external/llvm-project/lldb/unittests/Process/minidump/ |
D | MinidumpParserTest.cpp | 9 #include "Plugins/Process/minidump/MinidumpParser.h" 10 #include "Plugins/Process/minidump/MinidumpTypes.h" 11 #include "Plugins/Process/minidump/RegisterContextMinidump_x86_32.h" 12 #include "Plugins/Process/minidump/RegisterContextMinidump_x86_64.h" 37 using namespace minidump; 79 --- !minidump in TEST_F() 96 --- !minidump in TEST_F() 108 llvm::ArrayRef<minidump::Thread> thread_list; in TEST_F() 113 const minidump::Thread &thread = thread_list[0]; in TEST_F() 123 --- !minidump in TEST_F() [all …]
|
/external/llvm-project/llvm/unittests/ObjectYAML/ |
D | MinidumpYAMLTest.cpp | 1 //===- MinidumpYAMLTest.cpp - Tests for Minidump<->YAML code --------------===// 9 #include "llvm/Object/Minidump.h" 16 using namespace llvm::minidump; 33 --- !minidump in TEST() 75 --- !minidump in TEST() 91 --- !minidump in TEST() 121 --- !minidump in TEST() 147 --- !minidump in TEST() 165 Expected<const minidump::ExceptionStream &> ExpectedStream = in TEST() 170 const minidump::ExceptionStream &Stream = *ExpectedStream; in TEST() [all …]
|
/external/llvm-project/lldb/source/Plugins/Process/minidump/ |
D | MinidumpParser.h | 24 #include "llvm/Object/Minidump.h" 34 namespace minidump { 36 // Describes a range of memory captured in the Minidump 59 UUID GetModuleUUID(const minidump::Module *module); 61 llvm::ArrayRef<minidump::Thread> GetThreads(); 65 llvm::ArrayRef<uint8_t> GetThreadContext(const minidump::Thread &td); 67 llvm::ArrayRef<uint8_t> GetThreadContextWow64(const minidump::Thread &td); 77 llvm::ArrayRef<minidump::Module> GetModuleList(); 83 std::vector<const minidump::Module *> GetFilteredModuleList(); 85 const llvm::minidump::ExceptionStream *GetExceptionStream(); [all …]
|