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
Marco Bubke
flatpak-qt-creator
Commits
c17619ed
Commit
c17619ed
authored
Mar 29, 2010
by
hjk
Browse files
debugger: replace -exec-until with the old tbreak + continue combo.
parent
67eb9c08
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
c17619ed
...
...
@@ -1930,9 +1930,18 @@ void GdbEngine::executeRunToLine(const QString &fileName, int lineNumber)
setTokenBarrier
();
setState
(
InferiorRunningRequested
);
showStatusMessage
(
tr
(
"Run to line %1 requested..."
).
arg
(
lineNumber
),
5000
);
#if 1
QByteArray
loc
=
'"'
+
breakLocation
(
fileName
).
toLocal8Bit
()
+
'"'
+
':'
+
QByteArray
::
number
(
lineNumber
);
postCommand
(
"tbreak "
+
loc
);
postCommand
(
"continue"
,
RunRequest
);
#else
// Seems to jump to unpredicatable places. Observed in the manual
// tests in the Foo::Foo() constructor with both gdb 6.8 and 7.1.
QByteArray
args
=
'"'
+
breakLocation
(
fileName
).
toLocal8Bit
()
+
'"'
+
':'
+
QByteArray
::
number
(
lineNumber
);
postCommand
(
"-exec-until "
+
args
,
RunRequest
,
CB
(
handleExecuteContinue
));
#endif
}
void
GdbEngine
::
executeRunToFunction
(
const
QString
&
functionName
)
...
...
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