Commit a1935367 authored by hjk's avatar hjk

Debugger: Stop process before manipulating breakpoints with LLDB

This seems to be a LLDB/Linux specific problem.

Task-number: QTCREATORBUG-11441
Change-Id: I390e17737a63f53dc1d1e2060ef87a3ad94fedf5
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c7f80c2c
......@@ -31,6 +31,7 @@ import atexit
import inspect
import json
import os
import platform
import re
import select
import sys
......@@ -1388,6 +1389,13 @@ class Dumper(DumperBase):
return self.target.BreakpointDelete(id)
def handleBreakpoints(self, args):
# This seems to be only needed on Linux.
needStop = False
if self.process and platform.system() == "Linux":
needStop = self.process.GetState() != lldb.eStateStopped
if needStop:
error = self.process.Stop()
result = 'bkpts=['
for bp in args['bkpts']:
operation = bp['operation']
......@@ -1407,6 +1415,10 @@ class Dumper(DumperBase):
result += '{operation="removed",modelid="%s"}' % bp["modelid"]
result += "]"
if needStop:
error = self.process.Continue()
self.report(result)
def listModules(self, args):
......
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