Path: blob/main/contrib/llvm-project/lldb/source/API/SBBreakpointOptionCommon.h
39587 views
//===-- SBBreakpointOptionCommon.h ------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_API_SBBREAKPOINTOPTIONCOMMON_H9#define LLDB_SOURCE_API_SBBREAKPOINTOPTIONCOMMON_H1011#include "lldb/API/SBDefines.h"12#include "lldb/Utility/Baton.h"1314namespace lldb15{16struct CallbackData {17SBBreakpointHitCallback callback;18void *callback_baton;19};2021class SBBreakpointCallbackBaton : public lldb_private::TypedBaton<CallbackData> {22public:23SBBreakpointCallbackBaton(SBBreakpointHitCallback callback,24void *baton);2526~SBBreakpointCallbackBaton() override;2728static bool PrivateBreakpointHitCallback(void *baton,29lldb_private::StoppointCallbackContext *ctx,30lldb::user_id_t break_id,31lldb::user_id_t break_loc_id);32};3334} // namespace lldb35#endif // LLDB_SOURCE_API_SBBREAKPOINTOPTIONCOMMON_H363738