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
a8300b3f
Commit
a8300b3f
authored
Feb 19, 2009
by
hjk
Browse files
Fixes: debugger: compile with QT_NO_CAST_TO_ASCII
parent
17f1c8a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debugger.pro
View file @
a8300b3f
...
...
@@ -10,7 +10,9 @@ include(../../plugins/texteditor/texteditor.pri)
include
(..
/../
plugins
/
cpptools
/
cpptools
.
pri
)
include
(..
/../
libs
/
cplusplus
/
cplusplus
.
pri
)
#
DEFINES
+=
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
#
DEFINES
+=
QT_NO_CAST_FROM_ASCII
DEFINES
+=
QT_NO_CAST_TO_ASCII
QT
+=
gui
network
script
HEADERS
+=
attachexternaldialog
.
h
\
...
...
src/plugins/debugger/gdbengine.cpp
View file @
a8300b3f
...
...
@@ -491,21 +491,21 @@ void GdbEngine::handleResponse()
}
case
'~'
:
{
Q
String
data
=
GdbMi
::
parseCString
(
from
,
to
);
Q
ByteArray
data
=
GdbMi
::
parseCString
(
from
,
to
);
m_pendingConsoleStreamOutput
+=
data
;
m_inbuffer
=
QByteArray
(
from
,
to
-
from
);
break
;
}
case
'@'
:
{
Q
String
data
=
GdbMi
::
parseCString
(
from
,
to
);
Q
ByteArray
data
=
GdbMi
::
parseCString
(
from
,
to
);
m_pendingTargetStreamOutput
+=
data
;
m_inbuffer
=
QByteArray
(
from
,
to
-
from
);
break
;
}
case
'&'
:
{
Q
String
data
=
GdbMi
::
parseCString
(
from
,
to
);
Q
ByteArray
data
=
GdbMi
::
parseCString
(
from
,
to
);
m_pendingLogStreamOutput
+=
data
;
m_inbuffer
=
QByteArray
(
from
,
to
-
from
);
// On Windows, the contents seem to depend on the debugger
...
...
@@ -3124,15 +3124,15 @@ void GdbEngine::runCustomDumper(const WatchData & data0, bool dumpChildren)
addr
=
"&("
+
data
.
exp
+
")"
;
QByteArray
params
;
params
.
append
(
outertype
);
params
.
append
(
outertype
.
toUtf8
()
);
params
.
append
(
'\0'
);
params
.
append
(
data
.
iname
);
params
.
append
(
data
.
iname
.
toUtf8
()
);
params
.
append
(
'\0'
);
params
.
append
(
data
.
exp
);
params
.
append
(
data
.
exp
.
toUtf8
()
);
params
.
append
(
'\0'
);
params
.
append
(
inner
);
params
.
append
(
inner
.
toUtf8
()
);
params
.
append
(
'\0'
);
params
.
append
(
data
.
iname
);
params
.
append
(
data
.
iname
.
toUtf8
()
);
params
.
append
(
'\0'
);
sendWatchParameters
(
params
);
...
...
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