diff options
author | hjk <[email protected]> | 2014-11-06 14:30:52 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2014-11-07 10:50:15 +0100 |
commit | 66a87a1748222660d1d9fd984e409bc9fbdc3b79 (patch) | |
tree | b7ef8940afffda4b3ef989aa51ea2624ea24e862 /src/plugins/debugger/breakhandler.cpp | |
parent | ba60b512e599567fad487e5d91741ba51da0b637 (diff) |
Debugger: Fix number of appearances of data watch points
At least on Linux setting one data watch point resulted in two
view entries, since we parse two responses (direct command
response, and later GDB notification). Suppressing the second
was not working well enough.
Change-Id: Ica99c000d4912a9480a9e7020d2fdfdb866753b5
Reviewed-by: Christian Stenger <[email protected]>
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 0ea3671cae6..ee12302c6d8 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -190,7 +190,6 @@ static inline bool fileNameMatch(const QString &f1, const QString &f2) static bool isSimilarTo(const BreakpointParameters &data, const BreakpointResponse &needle) { - // Clear hit. // Clear miss. if (needle.type != UnknownBreakpointType && data.type != UnknownBreakpointType && data.type != needle.type) @@ -200,6 +199,10 @@ static bool isSimilarTo(const BreakpointParameters &data, const BreakpointRespon if (data.address && data.address == needle.address) return true; + // Clear hit. + if (data == needle) + return true; + // At least at a position we were looking for. // FIXME: breaks multiple breakpoints at the same location if (!data.fileName.isEmpty() |