Commit 16bd7996 authored by Peifeng Yu's avatar Peifeng Yu
Browse files

Turn off gdb disable-randomization when testing

Summary: On our CI server, gdb doesn't have the permission to disable ASLR when starting inferior and exits early. The patch turns off this feature for gdb when doing automated testing.

Test Plan: gdb unit tests

Reviewers: #kdevelop, kfunk

Reviewed By: #kdevelop, kfunk

Subscribers: kdevelop-devel

Differential Revision:
parent ec1488f4
......@@ -952,6 +952,11 @@ bool DebugSession::startDebugger(KDevelop::ILaunchConfiguration* cfg)
queueCmd(new GDBCommand(GDBMI::NonMI, "source " + fileName));
if (m_testing) {
// GDB can't disable ASLR on CI server.
queueCmd(new GDBCommand(GDBMI::GdbSet, "disable-randomization off"));
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment