forked from qt-creator/qt-creator
Debugger: Add to solib-search-path, don't replace it
Task-number: QTCREATORBUG-18812 Change-Id: I0fb8d81d55e9928bd3825c510a11ab426ec082c6 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1054,6 +1054,11 @@ class Dumper(DumperBase):
|
||||
cmd = 'set variable (%s)=%s' % (expr, value)
|
||||
gdb.execute(cmd)
|
||||
|
||||
def appendSolibSearchPath(self, args):
|
||||
new = list(map(self.hexdecode, args['path']))
|
||||
old = [gdb.parameter('solib-search-path')]
|
||||
gdb.execute('set solib-search-path %s' % args['separator'].join(old + new))
|
||||
|
||||
def watchPoint(self, args):
|
||||
self.reportToken(args)
|
||||
ns = self.qtNamespace()
|
||||
|
@@ -167,9 +167,12 @@ void GdbRemoteServerEngine::setupInferior()
|
||||
|
||||
// if (!remoteArch.isEmpty())
|
||||
// postCommand("set architecture " + remoteArch);
|
||||
const QString solibSearchPath = rp.solibSearchPath.join(HostOsInfo::pathListSeparator());
|
||||
if (!solibSearchPath.isEmpty())
|
||||
runCommand({"set solib-search-path " + solibSearchPath});
|
||||
if (!rp.solibSearchPath.isEmpty()) {
|
||||
DebuggerCommand cmd("appendSolibSearchPath");
|
||||
cmd.arg("path", rp.solibSearchPath);
|
||||
cmd.arg("separator", HostOsInfo::pathListSeparator());
|
||||
runCommand(cmd);
|
||||
}
|
||||
|
||||
if (!args.isEmpty())
|
||||
runCommand({"-exec-arguments " + args});
|
||||
|
Reference in New Issue
Block a user