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
ab3a702c
Commit
ab3a702c
authored
Mar 02, 2010
by
hjk
Browse files
debugger: don't ask for traditional dumpers if python was found.
parent
caf8a451
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
ab3a702c
...
...
@@ -1478,11 +1478,19 @@ void GdbEngine::handleShowVersion(const GdbResponse &response)
void
GdbEngine
::
handleHasPython
(
const
GdbResponse
&
response
)
{
Q_UNUSED
(
response
);
if
(
response
.
resultClass
==
GdbResultDone
)
{
m_hasPython
=
true
;
}
else
{
m_hasPython
=
false
;
if
(
m_gdbAdapter
->
dumperHandling
()
==
AbstractGdbAdapter
::
DumperLoadedByGdbPreload
&&
checkDebuggingHelpersClassic
())
{
QByteArray
cmd
=
"set environment "
;
cmd
+=
Debugger
::
Constants
::
Internal
::
LD_PRELOAD_ENV_VAR
;
cmd
+=
' '
;
cmd
+=
manager
()
->
qtDumperLibraryName
().
toLocal8Bit
();
postCommand
(
cmd
);
m_debuggingHelperState
=
DebuggingHelperLoadTried
;
}
}
}
...
...
@@ -3933,15 +3941,6 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
postCommand
(
"show version"
,
CB
(
handleShowVersion
));
postCommand
(
"-interpreter-exec console "
"
\"
python execfile('"
+
dumperSourcePath
+
"dumper.py')
\"
"
,
NonCriticalResponse
);
postCommand
(
"-interpreter-exec console "
"
\"
python execfile('"
+
dumperSourcePath
+
"gdbmacros.py')
\"
"
,
NonCriticalResponse
);
postCommand
(
"-interpreter-exec console
\"
help bb
\"
"
,
CB
(
handleHasPython
));
//postCommand("-enable-timings");
postCommand
(
"set print static-members off"
);
// Seemingly doesn't work.
//postCommand("set debug infrun 1");
...
...
@@ -4021,15 +4020,17 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
).
arg
(
scriptFileName
));
}
}
if
(
m_gdbAdapter
->
dumperHandling
()
==
AbstractGdbAdapter
::
DumperLoadedByGdbPreload
&&
checkDebuggingHelpers
())
{
QByteArray
cmd
=
"set environment "
;
cmd
+=
Debugger
::
Constants
::
Internal
::
LD_PRELOAD_ENV_VAR
;
cmd
+=
' '
;
cmd
+=
manager
()
->
qtDumperLibraryName
().
toLocal8Bit
();
postCommand
(
cmd
);
m_debuggingHelperState
=
DebuggingHelperLoadTried
;
}
postCommand
(
"-interpreter-exec console "
"
\"
python execfile('"
+
dumperSourcePath
+
"dumper.py')
\"
"
,
NonCriticalResponse
);
postCommand
(
"-interpreter-exec console "
"
\"
python execfile('"
+
dumperSourcePath
+
"gdbmacros.py')
\"
"
,
NonCriticalResponse
);
postCommand
(
"-interpreter-exec console
\"
help bb
\"
"
,
CB
(
handleHasPython
));
return
true
;
}
...
...
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