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
Marco Bubke
flatpak-qt-creator
Commits
32ff5cf9
Commit
32ff5cf9
authored
Feb 16, 2009
by
Oswald Buddenhagen
Committed by
hjk
Feb 17, 2009
Browse files
Fixes: debugging external apps
just treat it the same as internal apps as far as gdbengine is concerned.
parent
2cb3536a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
32ff5cf9
...
...
@@ -1588,7 +1588,9 @@ bool GdbEngine::startDebugger()
}
}
if
(
q
->
startMode
()
==
q
->
startInternal
)
{
if
(
q
->
startMode
()
==
q
->
attachExternal
)
{
sendCommand
(
"attach "
+
QString
::
number
(
q
->
m_attachedPID
));
}
else
{
emit
gdbInputAvailable
(
QString
(),
QString
());
sendCommand
(
"-file-exec-and-symbols "
+
fileName
,
GdbFileExecAndSymbols
);
//sendCommand("file " + fileName, GdbFileExecAndSymbols);
...
...
@@ -1602,20 +1604,6 @@ bool GdbEngine::startDebugger()
sendCommand
(
"x/2i "
+
startSymbolName
(),
GdbStart
);
}
if
(
q
->
startMode
()
==
q
->
attachExternal
)
{
sendCommand
(
"attach "
+
QString
::
number
(
q
->
m_attachedPID
));
}
if
(
q
->
startMode
()
==
q
->
startExternal
)
{
//sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
sendCommand
(
"file "
+
fileName
,
GdbFileExecAndSymbols
);
#ifdef Q_OS_MAC
sendCommand
(
"sharedlibrary apply-load-rules all"
);
#endif
//sendCommand("-file-list-exec-source-files", GdbQuerySources);
//sendCommand("-gdb-set stop-on-solib-events 1");
}
sendCommand
(
"-data-list-register-names"
,
RegisterListNames
);
// set all to "pending"
...
...
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