1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

//! Debugger control

use crate::{simics_exception, sys::SIM_get_debugger, ConfObject};

#[simics_exception]
/// Return the current debugger if one is active
pub fn get_debugger() -> *mut ConfObject {
    unsafe { SIM_get_debugger() }
}