Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
73aa3e21
Commit
73aa3e21
authored
Oct 16, 2009
by
hjk
Browse files
debugger: make parsing of new dumper outpuit a bit more robust
parent
e1c8bb40
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
73aa3e21
...
...
@@ -3416,6 +3416,12 @@ void GdbEngine::handleStackFrame2(const GdbResponse &response)
out
.
chop
(
1
);
//qDebug() << "SECOND CHUNK: " << out;
out
=
m_firstChunk
+
out
;
int
pos
=
out
.
indexOf
(
"locals="
);
if
(
pos
!=
0
)
{
qDebug
()
<<
"DICARDING JUNK AT BEGIN OF RESPONSE: "
<<
out
.
left
(
pos
);
out
=
out
.
mid
(
pos
);
}
GdbMi
all
(
"["
+
out
+
"]"
);
//GdbMi all(out);
...
...
src/plugins/debugger/watchhandler.cpp
View file @
73aa3e21
...
...
@@ -1102,7 +1102,7 @@ void WatchHandler::insertData(const WatchData &data)
qWarning
(
"%s:%d: Attempt to insert invalid watch item: %s"
,
__FILE__
,
__LINE__
,
qPrintable
(
data
.
toString
()));
return
;
}
if
(
data
.
isSomethingNeeded
())
{
if
(
data
.
isSomethingNeeded
()
&&
data
.
iname
.
contains
(
'.'
)
)
{
MODEL_DEBUG
(
"SOMETHING NEEDED: "
<<
data
.
toString
());
m_manager
->
updateWatchData
(
data
);
}
else
{
...
...
src/plugins/debugger/watchutils.cpp
View file @
73aa3e21
...
...
@@ -431,7 +431,7 @@ QString decodeData(const QByteArray &ba, int encoding)
case
5
:
{
// base64 encoded 8 bit data, without quotes (see 1)
return
quoteUnprintableLatin1
(
QByteArray
::
fromBase64
(
ba
));
}
case
7
:
{
// %04x en
d
oded 16 bit data
case
7
:
{
// %04x en
c
oded 16 bit data
const
QChar
doubleQuote
(
QLatin1Char
(
'"'
));
const
QByteArray
decodedBa
=
QByteArray
::
fromHex
(
ba
);
//qDebug() << quoteUnprintableLatin1(decodedBa) << "\n\n";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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