LLDB
mainline
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
a
b
d
e
f
g
h
i
k
l
n
p
r
s
t
v
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
c
d
e
f
g
i
k
l
n
o
p
s
t
u
v
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Related Functions
:
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
_
a
b
c
d
e
f
g
i
j
l
m
o
p
r
s
t
u
v
Enumerations
Enumerator
a
b
d
e
f
g
h
k
m
n
p
r
s
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Examples
llvm-project
lldb
source
Commands
CommandObjectVersion.cpp
Go to the documentation of this file.
1
//===-- CommandObjectVersion.cpp ------------------------------------------===//
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
#include "
CommandObjectVersion.h
"
10
11
#include "
lldb/Interpreter/CommandReturnObject.h
"
12
#include "
lldb/Version/Version.h
"
13
14
using namespace
lldb
;
15
using namespace
lldb_private
;
16
17
// CommandObjectVersion
18
19
CommandObjectVersion::CommandObjectVersion
(
CommandInterpreter
&interpreter)
20
:
CommandObjectParsed
(interpreter,
"version"
,
21
"Show the LLDB debugger version."
,
"version"
) {}
22
23
CommandObjectVersion::~CommandObjectVersion
() =
default
;
24
25
void
CommandObjectVersion::DoExecute
(
Args
&args,
CommandReturnObject
&result) {
26
result.
AppendMessageWithFormat
(
"%s\n"
,
lldb_private::GetVersion
());
27
result.
SetStatus
(
eReturnStatusSuccessFinishResult
);
28
}
CommandObjectVersion.h
CommandReturnObject.h
Version.h
lldb_private::Args
A command line argument class.
Definition:
Args.h:33
lldb_private::CommandInterpreter
Definition:
CommandInterpreter.h:231
lldb_private::CommandObjectParsed
Definition:
CommandObject.h:425
lldb_private::CommandObjectVersion::~CommandObjectVersion
~CommandObjectVersion() override
lldb_private::CommandObjectVersion::DoExecute
void DoExecute(Args &args, CommandReturnObject &result) override
Definition:
CommandObjectVersion.cpp:25
lldb_private::CommandObjectVersion::CommandObjectVersion
CommandObjectVersion(CommandInterpreter &interpreter)
Definition:
CommandObjectVersion.cpp:19
lldb_private::CommandReturnObject
Definition:
CommandReturnObject.h:28
lldb_private::CommandReturnObject::SetStatus
void SetStatus(lldb::ReturnStatus status)
Definition:
CommandReturnObject.cpp:184
lldb_private::CommandReturnObject::AppendMessageWithFormat
void AppendMessageWithFormat(const char *format,...) __attribute__((format(printf
Definition:
CommandReturnObject.cpp:71
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb_private::GetVersion
const char * GetVersion()
Retrieves a string representing the complete LLDB version, which includes the lldb version number,...
Definition:
Version.cpp:38
lldb
Definition:
SBAddress.h:15
lldb::eReturnStatusSuccessFinishResult
@ eReturnStatusSuccessFinishResult
Definition:
lldb-enumerations.h:263
Generated on Mon Mar 10 2025 13:50:05 for LLDB by
1.9.6