LLDB
mainline
llvm-project
lldb
include
lldb
API
SBSourceManager.h
Go to the documentation of this file.
1
//===-- SBSourceManager.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_SBSOURCEMANAGER_H
10
#define LLDB_API_SBSOURCEMANAGER_H
11
12
#include "
lldb/API/SBDefines.h
"
13
14
#include <cstdio>
15
16
namespace
lldb
{
17
18
class
LLDB_API
SBSourceManager
{
19
public
:
20
SBSourceManager
(
const
SBDebugger
&debugger);
21
SBSourceManager
(
const
SBTarget
&target);
22
SBSourceManager
(
const
SBSourceManager
&rhs);
23
24
~SBSourceManager
();
25
26
const
lldb::SBSourceManager
&operator=(
const
lldb::SBSourceManager
&rhs);
27
28
size_t
DisplaySourceLinesWithLineNumbers(
29
const
lldb::SBFileSpec
&file,
uint32_t
line,
uint32_t
context_before,
30
uint32_t
context_after,
const
char
*current_line_cstr,
lldb::SBStream
&s);
31
32
size_t
DisplaySourceLinesWithLineNumbersAndColumn(
33
const
lldb::SBFileSpec
&file,
uint32_t
line,
uint32_t
column,
34
uint32_t
context_before,
uint32_t
context_after,
35
const
char
*current_line_cstr,
lldb::SBStream
&s);
36
37
protected
:
38
friend
class
SBCommandInterpreter
;
39
friend
class
SBDebugger
;
40
41
private
:
42
std::unique_ptr<lldb_private::SourceManagerImpl>
m_opaque_up
;
43
};
44
45
}
// namespace lldb
46
47
#endif
// LLDB_API_SBSOURCEMANAGER_H
SBDefines.h
LLDB_API
#define LLDB_API
Definition:
SBDefines.h:26
lldb::SBCommandInterpreter
Definition:
SBCommandInterpreter.h:19
lldb::SBDebugger
Definition:
SBDebugger.h:36
lldb::SBFileSpec
Definition:
SBFileSpec.h:16
lldb::SBSourceManager
Definition:
SBSourceManager.h:18
lldb::SBSourceManager::m_opaque_up
std::unique_ptr< lldb_private::SourceManagerImpl > m_opaque_up
Definition:
SBSourceManager.h:42
lldb::SBSourceManager::~SBSourceManager
~SBSourceManager()
lldb::SBStream
Definition:
SBStream.h:18
lldb::SBTarget
Definition:
SBTarget.h:29
uint32_t
lldb
Definition:
SBAddress.h:15
Generated on Tue Mar 28 2023 07:34:36 for LLDB by
1.9.6