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
80604794
Commit
80604794
authored
Oct 20, 2009
by
Oswald Buddenhagen
Browse files
find executable relative to core location
parent
3dfe96eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/coregdbadapter.cpp
View file @
80604794
...
...
@@ -35,6 +35,7 @@
#include <utils/qtcassert.h>
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtGui/QMessageBox>
...
...
@@ -138,12 +139,16 @@ void CoreGdbAdapter::handleTargetCore(const GdbResponse &response)
if
(
idx
>=
0
)
m_executable
.
truncate
(
idx
);
if
(
!
m_executable
.
isEmpty
())
{
// Finish extra round ...
showStatusMessage
(
tr
(
"Attached to core temporarily."
));
m_engine
->
postCommand
(
_
(
"detach"
));
// ... and retry.
loadExeAndSyms
();
return
;
m_executable
=
QFileInfo
(
startParameters
().
coreFile
).
absoluteDir
()
.
absoluteFilePath
(
m_executable
);
if
(
QFile
::
exists
(
m_executable
))
{
// Finish extra round ...
showStatusMessage
(
tr
(
"Attached to core temporarily."
));
m_engine
->
postCommand
(
_
(
"detach"
));
// ... and retry.
loadExeAndSyms
();
return
;
}
}
}
showMessageBox
(
QMessageBox
::
Warning
,
tr
(
"Error Loading Symbols"
),
...
...
Write
Preview
Supports
Markdown
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