| 38 | } |
| 39 | |
| 40 | LldbAdapter::LldbAdapter(BinaryView* data) : DebugAdapter(data) |
| 41 | { |
| 42 | m_targetActive = false; |
| 43 | SBDebugger::Initialize(); |
| 44 | m_debugger = SBDebugger::Create(); |
| 45 | if (!m_debugger.IsValid()) |
| 46 | LogWarn("Invalid debugger"); |
| 47 | |
| 48 | m_isElFWithoutDynamicLoader = IsELFWithoutDynamicLoader(data); |
| 49 | |
| 50 | // Set auto-confirm to true so operations that ask for confirmation will proceed automatically. |
| 51 | // Otherwise, the confirmation prompt will be sent to the terminal that BN is launched from, which is a very |
| 52 | // confusing behavior. |
| 53 | InvokeBackendCommand("settings set auto-confirm true"); |
| 54 | m_debugger.SetAsync(false); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | LldbAdapter::~LldbAdapter() |
nothing calls this directly
no outgoing calls
no test coverage detected