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
1477165e
Commit
1477165e
authored
Dec 01, 2010
by
Friedemann Kleint
Browse files
Debugger: Fix StackFrame.usable for CDB
parent
abbb4469
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbstacktracecontext.cpp
View file @
1477165e
...
...
@@ -40,6 +40,7 @@
#include <utils/savedaction.h>
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
enum
{
debug
=
0
};
...
...
@@ -100,14 +101,14 @@ QList<StackFrame> CdbStackTraceContext::stackFrames() const
// Convert from Core data structures
QList
<
StackFrame
>
rc
;
const
int
count
=
frameCount
();
const
QString
hexPrefix
=
QLatin1String
(
"0x"
);
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
const
CdbCore
::
StackFrame
&
coreFrame
=
stackFrameAt
(
i
);
StackFrame
frame
;
frame
.
level
=
i
;
frame
.
file
=
coreFrame
.
fileName
;
frame
.
usable
=
!
frame
.
file
.
isEmpty
()
&&
QFileInfo
(
frame
.
file
).
isFile
();
frame
.
line
=
coreFrame
.
line
;
frame
.
function
=
coreFrame
.
function
;
frame
.
function
=
coreFrame
.
function
;
frame
.
from
=
coreFrame
.
module
;
frame
.
address
=
coreFrame
.
address
;
rc
.
push_back
(
frame
);
...
...
src/plugins/debugger/cdb2/cdbengine2.cpp
View file @
1477165e
...
...
@@ -1801,6 +1801,7 @@ static StackFrames parseFrames(const QByteArray &data)
if
(
fullName
.
isValid
())
{
frame
.
file
=
QFile
::
decodeName
(
fullName
.
data
());
frame
.
line
=
frameMi
.
findChild
(
"line"
).
data
().
toInt
();
frame
.
usable
=
QFileInfo
(
frame
.
file
).
isFile
();
}
frame
.
function
=
QLatin1String
(
frameMi
.
findChild
(
"func"
).
data
());
frame
.
from
=
QLatin1String
(
frameMi
.
findChild
(
"from"
).
data
());
...
...
src/plugins/debugger/cdb2/cdbparsehelpers.cpp
View file @
1477165e
...
...
@@ -29,7 +29,6 @@
#include "cdbparsehelpers.h"
#include "breakpoint.h"
#include "stackframe.h"
#include "threadshandler.h"
#include "registerhandler.h"
#include "bytearrayinputstream.h"
...
...
src/plugins/debugger/cdb2/cdbparsehelpers.h
View file @
1477165e
...
...
@@ -44,7 +44,6 @@ namespace Debugger {
namespace
Internal
{
class
BreakpointData
;
class
BreakpointParameters
;
class
StackFrame
;
struct
ThreadData
;
class
Register
;
class
GdbMi
;
...
...
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