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
39bf47f7
Commit
39bf47f7
authored
Apr 16, 2009
by
hjk
Browse files
debugger: fix message on debugger exit
parent
544aea1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
39bf47f7
...
...
@@ -103,6 +103,7 @@ enum GdbCommandType
GdbQuerySources
,
GdbAsyncOutput2
,
GdbStart
,
GdbExit
,
GdbAttached
,
GdbStubAttached
,
GdbExecRun
,
...
...
@@ -755,6 +756,9 @@ void GdbEngine::handleResult(const GdbResultRecord & record, int type,
case
GdbInfoThreads
:
handleInfoThreads
(
record
);
break
;
case
GdbExit
:
handleExit
(
record
);
break
;
case
GdbShowVersion
:
handleShowVersion
(
record
);
...
...
@@ -1167,7 +1171,7 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
+
data
.
findChild
(
"signal-name"
).
toString
();
}
q
->
showStatusMessage
(
msg
);
sendCommand
(
"-gdb-exit"
);
sendCommand
(
"-gdb-exit"
,
GdbExit
);
return
;
}
...
...
@@ -1525,7 +1529,7 @@ void GdbEngine::exitDebugger()
sendCommand
(
"detach"
);
else
sendCommand
(
"kill"
);
sendCommand
(
"-gdb-exit"
);
sendCommand
(
"-gdb-exit"
,
GdbExit
);
// 20s can easily happen when loading webkit debug information
m_gdbProc
.
waitForFinished
(
20000
);
if
(
m_gdbProc
.
state
()
!=
QProcess
::
Running
)
{
...
...
@@ -1797,6 +1801,12 @@ void GdbEngine::handleAttach()
qq
->
reloadRegisters
();
}
void
GdbEngine
::
handleExit
(
const
GdbResultRecord
&
response
)
{
Q_UNUSED
(
response
);
q
->
showStatusMessage
(
tr
(
"Debugger exited."
));
}
void
GdbEngine
::
stepExec
()
{
setTokenBarrier
();
...
...
@@ -3409,14 +3419,15 @@ void GdbEngine::handleQueryDebuggingHelper(const GdbResultRecord &record)
m_availableSimpleDebuggingHelpers
.
append
(
item
.
data
());
if
(
m_availableSimpleDebuggingHelpers
.
isEmpty
())
{
m_debuggingHelperState
=
DebuggingHelperUnavailable
;
QMessageBox
::
warning
(
q
->
mainWindow
(),
tr
(
"Cannot find special data dumpers"
),
tr
(
"The debugged binary does not contain information needed for "
"nice display of Qt data types.
\n\n
"
"You might want to try including the file
\n\n
"
".../share/qtcreator/gdbmacros/gdbmacros.cpp
\n\n
"
"into your project directly."
)
);
q
->
showStatusMessage
(
tr
(
"Debugging helpers not found."
));
//QMessageBox::warning(q->mainWindow(),
// tr("Cannot find special data dumpers"),
// tr("The debugged binary does not contain information needed for "
// "nice display of Qt data types.\n\n"
// "You might want to try including the file\n\n"
// ".../share/qtcreator/gdbmacros/gdbmacros.cpp\n\n"
// "into your project directly.")
// );
}
else
{
m_debuggingHelperState
=
DebuggingHelperAvailable
;
q
->
showStatusMessage
(
tr
(
"%1 custom dumpers found."
)
...
...
src/plugins/debugger/gdbengine.h
View file @
39bf47f7
...
...
@@ -199,6 +199,7 @@ private:
void
handleQueryPwd
(
const
GdbResultRecord
&
response
);
void
handleQuerySources
(
const
GdbResultRecord
&
response
);
void
handleTargetCore
(
const
GdbResultRecord
&
response
);
void
handleExit
(
const
GdbResultRecord
&
response
);
void
debugMessage
(
const
QString
&
msg
);
QString
dumperLibraryName
()
const
;
...
...
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