Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
cppit
jucipp
Commits
3b263156
Commit
3b263156
authored
Feb 25, 2021
by
Ole Christian Eidheim
Browse files
Fixed debug stop status message for newer liblldb versions
parent
64205e2e
Pipeline
#261631611
passed with stages
in 16 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/project.cpp
src/project.cpp
+2
-2
No files found.
src/project.cpp
View file @
3b263156
...
...
@@ -437,9 +437,9 @@ void Project::LLDB::debug_start() {
if
(
state
==
lldb
::
StateType
::
eStateStopped
)
{
char
buffer
[
100
];
auto
thread
=
process
.
GetSelectedThread
();
auto
n
=
thread
.
GetStopDescription
(
buffer
,
100
);
auto
n
=
thread
.
GetStopDescription
(
buffer
,
100
);
// Returns number of bytes read. Might include null termination... Although maybe on newer versions only.
if
(
n
>
0
)
status
+=
" ("
+
std
::
string
(
buffer
,
n
<=
100
?
n
:
100
)
+
")"
;
status
+=
" ("
+
std
::
string
(
buffer
,
n
<=
100
?
(
buffer
[
n
-
1
]
==
'\0'
?
n
-
1
:
n
)
:
100
)
+
")"
;
auto
line_entry
=
thread
.
GetSelectedFrame
().
GetLineEntry
();
if
(
line_entry
.
IsValid
())
{
lldb
::
SBStream
stream
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment