Zachary Turner | 742346a | 2014-11-05 22:16:28 +0000 | [diff] [blame] | 1 | //===-- ForwardDecl.h -------------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef liblldb_Plugins_Process_Windows_ForwardDecl_H_ |
| 11 | #define liblldb_Plugins_Process_Windows_ForwardDecl_H_ |
| 12 | |
| 13 | class ProcessWindows; |
| 14 | |
| 15 | #include <memory> |
| 16 | |
Zachary Turner | dcd8037 | 2014-11-11 00:00:14 +0000 | [diff] [blame] | 17 | // ExceptionResult is returned by the debug delegate to specify how it processed |
| 18 | // the exception. |
| 19 | enum class ExceptionResult |
| 20 | { |
Zachary Turner | 1019695 | 2014-11-17 21:31:30 +0000 | [diff] [blame] | 21 | BreakInDebugger, // Break in the debugger and give the user a chance to interact with |
| 22 | // the program before continuing. |
| 23 | MaskException, // Eat the exception and don't let the application know it occurred. |
| 24 | SendToApplication // Send the exception to the application to be handled as if there were |
| 25 | // no debugger attached. |
Zachary Turner | dcd8037 | 2014-11-11 00:00:14 +0000 | [diff] [blame] | 26 | }; |
| 27 | |
Zachary Turner | 742346a | 2014-11-05 22:16:28 +0000 | [diff] [blame] | 28 | namespace lldb_private |
| 29 | { |
Zachary Turner | 742346a | 2014-11-05 22:16:28 +0000 | [diff] [blame] | 30 | |
Zachary Turner | dcd8037 | 2014-11-11 00:00:14 +0000 | [diff] [blame] | 31 | class IDebugDelegate; |
Zachary Turner | 02862bc | 2014-11-07 23:44:13 +0000 | [diff] [blame] | 32 | class DebuggerThread; |
Zachary Turner | dcd8037 | 2014-11-11 00:00:14 +0000 | [diff] [blame] | 33 | class ExceptionRecord; |
| 34 | |
Zachary Turner | 742346a | 2014-11-05 22:16:28 +0000 | [diff] [blame] | 35 | typedef std::shared_ptr<IDebugDelegate> DebugDelegateSP; |
Zachary Turner | 3985f89 | 2014-11-10 22:32:18 +0000 | [diff] [blame] | 36 | typedef std::shared_ptr<DebuggerThread> DebuggerThreadSP; |
Zachary Turner | fb6c3494 | 2014-12-10 23:25:10 +0000 | [diff] [blame] | 37 | typedef std::shared_ptr<ExceptionRecord> ExceptionRecordSP; |
Zachary Turner | c6a6653 | 2014-12-03 22:04:18 +0000 | [diff] [blame] | 38 | typedef std::unique_ptr<ExceptionRecord> ExceptionRecordUP; |
Zachary Turner | 742346a | 2014-11-05 22:16:28 +0000 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | #endif |