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
Tobias Hunger
qt-creator
Commits
bb6a7c3c
Commit
bb6a7c3c
authored
Apr 20, 2010
by
Friedemann Kleint
Browse files
Debugger[CDB]: Wire stderr/stdout output.
parent
f0a64720
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbdebugengine.cpp
View file @
bb6a7c3c
...
...
@@ -152,10 +152,10 @@ bool CdbDebugEnginePrivate::init(QString *errorMessage)
manager
(),
SLOT
(
showDebuggerOutput
(
int
,
QString
)));
connect
(
output
,
SIGNAL
(
debuggerInputPrompt
(
int
,
QString
)),
manager
(),
SLOT
(
showDebuggerInput
(
int
,
QString
)));
connect
(
output
,
SIGNAL
(
debuggeeOutput
(
QString
)),
manager
(),
SLOT
(
showApplicationOutput
(
QString
)));
connect
(
output
,
SIGNAL
(
debuggeeInputPrompt
(
QString
)),
manager
(),
SLOT
(
showApplicationOutput
(
QString
)));
connect
(
output
,
SIGNAL
(
debuggeeOutput
(
QString
,
bool
)),
manager
(),
SLOT
(
showApplicationOutput
(
QString
,
bool
)));
connect
(
output
,
SIGNAL
(
debuggeeInputPrompt
(
QString
,
bool
)),
manager
(),
SLOT
(
showApplicationOutput
(
QString
,
bool
)));
setDebugEventCallback
(
DebugEventCallbackBasePtr
(
new
CdbDebugEventCallback
(
m_engine
)));
updateCodeLevel
();
...
...
src/plugins/debugger/cdb/cdbdebugeventcallback.cpp
View file @
bb6a7c3c
...
...
@@ -79,7 +79,7 @@ STDMETHODIMP CdbDebugEventCallback::Exception(
const
bool
fatal
=
isFatalException
(
Exception
->
ExceptionCode
);
if
(
debugCDB
)
qDebug
()
<<
Q_FUNC_INFO
<<
"
\n
ex="
<<
Exception
->
ExceptionCode
<<
" fatal="
<<
fatal
<<
msg
;
m_pEngine
->
manager
()
->
showApplicationOutput
(
msg
);
m_pEngine
->
manager
()
->
showApplicationOutput
(
msg
,
true
);
m_pEngine
->
manager
()
->
showDebuggerOutput
(
LogMisc
,
msg
);
m_pEngine
->
m_d
->
notifyException
(
Exception
->
ExceptionCode
,
fatal
,
msg
);
return
S_OK
;
...
...
src/plugins/debugger/cdb/cdbdebugoutput.cpp
View file @
bb6a7c3c
...
...
@@ -81,10 +81,10 @@ void CdbDebugOutput::output(ULONG mask, const QString &msg)
emit
debuggerInputPrompt
(
logChannel
(
mask
),
msg
);
break
;
case
DebuggeeOutput
:
emit
debuggeeOutput
(
msg
);
emit
debuggeeOutput
(
msg
,
true
);
break
;
case
DebuggeePromptOutput
:
emit
debuggeeInputPrompt
(
msg
);
emit
debuggeeInputPrompt
(
msg
,
false
);
break
;
}
}
...
...
src/plugins/debugger/cdb/cdbdebugoutput.h
View file @
bb6a7c3c
...
...
@@ -50,8 +50,8 @@ protected:
signals:
void
debuggerOutput
(
int
channel
,
const
QString
&
message
);
void
debuggerInputPrompt
(
int
channel
,
const
QString
&
message
);
void
debuggeeOutput
(
const
QString
&
message
);
void
debuggeeInputPrompt
(
const
QString
&
message
);
void
debuggeeOutput
(
const
QString
&
message
,
bool
onStderr
);
void
debuggeeInputPrompt
(
const
QString
&
message
,
bool
onStderr
);
};
}
// namespace Internal
...
...
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