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
e7d6b28e
Commit
e7d6b28e
authored
Jun 28, 2010
by
hjk
Browse files
debugger: make creation of back traces as text work on Mac
parent
f56dacc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
e7d6b28e
...
...
@@ -829,6 +829,8 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
++
currentToken
();
cmd
.
postTime
=
QTime
::
currentTime
();
m_cookieForToken
[
currentToken
()]
=
cmd
;
if
(
cmd
.
flags
&
ConsoleCommand
)
cmd
.
command
=
"-interpreter-exec console
\"
"
+
cmd
.
command
+
'"'
;
cmd
.
command
=
QByteArray
::
number
(
currentToken
())
+
cmd
.
command
;
showMessage
(
_
(
cmd
.
command
),
LogInput
);
...
...
@@ -3917,6 +3919,9 @@ void GdbEngine::handleFetchDisassemblerByCli(const GdbResponse &response)
if
(
response
.
resultClass
==
GdbResultDone
)
{
// Apple's gdb produces MI output even for CLI commands.
// FIXME: Check whether wrapping this into -interpreter-exec console
// (i.e. usgind the 'ConsoleCommand' GdbCommandFlag makes a
// difference.
GdbMi
lines
=
response
.
data
.
findChild
(
"asm_insns"
);
if
(
lines
.
isValid
())
{
ac
.
agent
->
setContents
(
parseDisassembler
(
lines
));
...
...
@@ -4133,15 +4138,12 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
}
}
postCommand
(
"-interpreter-exec console "
"
\"
python execfile('"
+
dumperSourcePath
+
"dumper.py')
\"
"
,
NonCriticalResponse
);
postCommand
(
"-interpreter-exec console "
"
\"
python execfile('"
+
dumperSourcePath
+
"gdbmacros.py')
\"
"
,
NonCriticalResponse
);
postCommand
(
"-interpreter-exec console
\"
bbsetup
\"
"
,
CB
(
handleHasPython
));
postCommand
(
"python execfile('"
+
dumperSourcePath
+
"dumper.py')"
,
ConsoleCommand
|
NonCriticalResponse
);
postCommand
(
"python execfile('"
+
dumperSourcePath
+
"gdbmacros.py')"
,
ConsoleCommand
|
NonCriticalResponse
);
postCommand
(
"bbsetup"
,
ConsoleCommand
,
CB
(
handleHasPython
));
return
true
;
}
...
...
@@ -4306,7 +4308,8 @@ bool GdbEngine::hasPython() const
void
GdbEngine
::
createFullBacktrace
()
{
postCommand
(
"thread apply all bt"
,
NeedsStop
,
CB
(
handleCreateFullBacktrace
));
postCommand
(
"thread apply all bt full"
,
NeedsStop
|
ConsoleCommand
,
CB
(
handleCreateFullBacktrace
));
}
void
GdbEngine
::
handleCreateFullBacktrace
(
const
GdbResponse
&
response
)
...
...
src/plugins/debugger/gdb/gdbengine.h
View file @
e7d6b28e
...
...
@@ -186,6 +186,8 @@ private: ////////// Gdb Command Management //////////
RebuildBreakpointModel
=
128
,
// This command needs to be send immediately.
Immediate
=
256
,
// This is a command that needs to be wrapped into -interpreter-exec console
ConsoleCommand
=
512
,
};
Q_DECLARE_FLAGS
(
GdbCommandFlags
,
GdbCommandFlag
)
private:
...
...
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