LLDB mainline
SBDefines.h
Go to the documentation of this file.
1//===-- SBDefines.h ---------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_API_SBDEFINES_H
10#define LLDB_API_SBDEFINES_H
11
12#include "lldb/lldb-defines.h"
14#include "lldb/lldb-forward.h"
15#include "lldb/lldb-types.h"
17
18#include <cstdio> // For FILE *
19
20#ifndef LLDB_API
21#if defined(_WIN32)
22#if defined(LLDB_IN_LIBLLDB)
23#define LLDB_API __declspec(dllexport)
24#else
25#define LLDB_API __declspec(dllimport)
26#endif
27#else // defined (_WIN32)
28#define LLDB_API
29#endif
30#endif
31
32// Don't add the deprecated attribute when generating the bindings or when
33// building for anything older than C++14 which is the first version that
34// supports the attribute.
35#if defined(SWIG) || _cplusplus < 201402L
36#undef LLDB_DEPRECATED
37#undef LLDB_DEPRECATED_FIXME
38#define LLDB_DEPRECATED(MSG)
39#define LLDB_DEPRECATED_FIXME(MSG, FIX)
40#endif
41
42// Forward Declarations
43namespace lldb {
44
140
141typedef bool (*SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process,
142 lldb::SBThread &thread,
144
145typedef void (*SBDebuggerDestroyCallback)(lldb::user_id_t debugger_id,
146 void *baton);
147
149 lldb::SBCommandReturnObject &result, void *baton);
150
152 void *baton, const lldb::SBModuleSpec &module_spec,
153 lldb::SBFileSpec &module_file_spec, lldb::SBFileSpec &symbol_file_spec);
154}
155
156#endif // LLDB_API_SBDEFINES_H
#define LLDB_API
Definition SBDefines.h:28
Class that represents a format string that can be used to generate descriptions of objects like frame...
Definition SBFormat.h:28
A Progress indicator helper class.
Definition SBProgress.h:30
The SBReproducer class is special because it bootstraps the capture and replay of SB API calls.
This class handles the verbosity when dumping statistics.
lldb::SBError(* SBPlatformLocateModuleCallback)(void *baton, const lldb::SBModuleSpec &module_spec, lldb::SBFileSpec &module_file_spec, lldb::SBFileSpec &symbol_file_spec)
Definition SBDefines.h:151
lldb::CommandReturnObjectCallbackResult(* SBCommandPrintCallback)(lldb::SBCommandReturnObject &result, void *baton)
Definition SBDefines.h:148
bool(* SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process, lldb::SBThread &thread, lldb::SBBreakpointLocation &location)
Definition SBDefines.h:141
uint64_t user_id_t
Definition lldb-types.h:82
void(* SBDebuggerDestroyCallback)(lldb::user_id_t debugger_id, void *baton)
Definition SBDefines.h:145
class LLDB_API SBError
Definition SBDefines.h:69
class LLDB_API SBEventList
Definition SBDefines.h:71
CommandReturnObjectCallbackResult
Callback return value, indicating whether it handled printing the CommandReturnObject or deferred doi...