Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b84ce82e
Commit
b84ce82e
authored
Dec 01, 2010
by
Arvid Ephraim Picciani
Browse files
debugger: Engine decides now if a StackFrame is considered usable
parent
0ab67db5
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerstreamops.cpp
View file @
b84ce82e
...
...
@@ -92,6 +92,7 @@ QDataStream &operator<<(QDataStream &stream, const StackFrame &s)
stream
<<
s
.
to
;
stream
<<
s
.
line
;
stream
<<
s
.
address
;
stream
<<
s
.
usable
;
return
stream
;
}
...
...
@@ -106,6 +107,7 @@ QDataStream &operator>>(QDataStream &stream, StackFrame &s)
stream
>>
s
.
to
;
stream
>>
s
.
line
;
stream
>>
s
.
address
;
stream
>>
s
.
usable
;
return
stream
;
}
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
b84ce82e
...
...
@@ -2853,6 +2853,7 @@ StackFrame GdbEngine::parseStackFrame(const GdbMi &frameMi, int level)
frame
.
from
=
_
(
frameMi
.
findChild
(
"from"
).
data
());
frame
.
line
=
frameMi
.
findChild
(
"line"
).
data
().
toInt
();
frame
.
address
=
frameMi
.
findChild
(
"addr"
).
data
().
toULongLong
(
0
,
16
);
frame
.
usable
=
QFileInfo
(
frame
.
file
).
isReadable
();
return
frame
;
}
...
...
src/plugins/debugger/qml/qmlengine.cpp
View file @
b84ce82e
...
...
@@ -138,6 +138,7 @@ static QDataStream &operator>>(QDataStream &s, StackFrame &frame)
s
>>
function
>>
file
>>
frame
.
line
;
frame
.
function
=
QString
::
fromUtf8
(
function
);
frame
.
file
=
QString
::
fromUtf8
(
file
);
frame
.
usable
=
QFileInfo
(
frame
.
file
).
isReadable
();
return
s
;
}
...
...
src/plugins/debugger/stackframe.cpp
View file @
b84ce82e
...
...
@@ -45,7 +45,7 @@ namespace Internal {
////////////////////////////////////////////////////////////////////////
StackFrame
::
StackFrame
()
:
level
(
-
1
),
line
(
-
1
),
address
(
0
)
:
level
(
-
1
),
line
(
-
1
),
address
(
0
)
,
usable
(
false
)
{}
void
StackFrame
::
clear
()
...
...
@@ -60,7 +60,7 @@ void StackFrame::clear()
bool
StackFrame
::
isUsable
()
const
{
return
!
file
.
isEmpty
()
&&
QFileInfo
(
file
).
isRead
able
()
;
return
us
able
;
}
QString
StackFrame
::
toString
()
const
...
...
src/plugins/debugger/stackframe.h
View file @
b84ce82e
...
...
@@ -59,6 +59,7 @@ public:
QString
to
;
// Used in ScriptEngine only.
qint32
line
;
quint64
address
;
bool
usable
;
Q_DECLARE_TR_FUNCTIONS
(
StackHandler
)
};
...
...
Write
Preview
Supports
Markdown
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