aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-08-03 08:40:56 +0200
committerhjk <hjk@qt.io>2021-08-06 07:18:43 +0000
commitadf70fd8f20f8aa0cbda39a8660acd08f9f51731 (patch)
tree2fb9ab2f69461d2c33bef68d346b3a0d53e5fa45 /share
parent82340dbf73a13958ed1248dc5216122ed1a3ae80 (diff)
Debugger: Don't add empty path components to solib-search-path
Change-Id: I417e5193749dae44d189fc0189a92899d738976b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/gdbbridge.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/gdbbridge.py b/share/qtcreator/debugger/gdbbridge.py
index af9f56bbe1..cb3210a884 100644
--- a/share/qtcreator/debugger/gdbbridge.py
+++ b/share/qtcreator/debugger/gdbbridge.py
@@ -1165,7 +1165,8 @@ class Dumper(DumperBase):
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))
+ joined = os.pathsep.join([item for item in old + new if item != ''])
+ gdb.execute('set solib-search-path %s' % joined)
def watchPoint(self, args):
self.reportToken(args)