Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0ccba579
Commit
0ccba579
authored
Nov 16, 2010
by
hjk
Browse files
debugger: potentia;l cdb compile fix
parent
694503cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbengine.cpp
View file @
0ccba579
...
...
@@ -1301,20 +1301,20 @@ bool CdbEngine::attemptBreakpointSynchronizationI(QString *errorMessage)
}
// If there are changes/removals, delete all breakpoints and re-insert
// all enabled breakpoints. This is the simplest
//
way to apply changes
since CDB ids shift when removing breakpoints and there is no
// all enabled breakpoints. This is the simplest
way to apply changes
// since CDB ids shift when removing breakpoints and there is no
// easy way to re-match them.
if
(
syncType
==
BreakpointsRemovedChanged
&&
!
deleteCdbBreakpoints
(
control
,
errorMessage
))
return
false
;
foreach
(
BreakpointId
id
,
ids
)
{
BreakpointResponse
response
;
const
Breakpoint
Data
*
data
=
handler
->
breakpoint
ById
(
id
);
const
Breakpoint
Parameters
&
data
=
handler
->
breakpoint
Data
(
id
);
errorMessage
->
clear
();
switch
(
handler
->
state
(
id
))
{
case
BreakpointInsertRequested
:
handler
->
setState
(
id
,
BreakpointInsertProceeding
);
if
(
addCdbBreakpoint
(
control
,
symbols
,
data
->
parameters
()
,
&
response
,
errorMessage
))
{
if
(
addCdbBreakpoint
(
control
,
symbols
,
data
,
&
response
,
errorMessage
))
{
notifyBreakpointInsertOk
(
id
);
handler
->
setResponse
(
id
,
response
);
}
else
{
...
...
@@ -1323,10 +1323,10 @@ bool CdbEngine::attemptBreakpointSynchronizationI(QString *errorMessage)
}
break
;
case
BreakpointChangeRequested
:
// Skip disabled breakpoints, else add
// Skip disabled breakpoints, else add
.
handler
->
setState
(
id
,
BreakpointChangeProceeding
);
if
(
data
->
isE
nabled
()
)
{
if
(
addCdbBreakpoint
(
control
,
symbols
,
data
->
parameters
()
,
&
response
,
errorMessage
))
{
if
(
data
.
e
nabled
)
{
if
(
addCdbBreakpoint
(
control
,
symbols
,
data
,
&
response
,
errorMessage
))
{
notifyBreakpointChangeOk
(
id
);
handler
->
setResponse
(
id
,
response
);
}
else
{
...
...
@@ -1344,7 +1344,7 @@ bool CdbEngine::attemptBreakpointSynchronizationI(QString *errorMessage)
case
BreakpointPending
:
// Existing breakpoints were deleted due to change/removal, re-set
if
(
syncType
==
BreakpointsRemovedChanged
&&
!
addCdbBreakpoint
(
control
,
symbols
,
handler
->
breakpoint
ById
(
id
)
->
parameters
(
),
&
response
,
errorMessage
))
&&
!
addCdbBreakpoint
(
control
,
symbols
,
handler
->
breakpoint
Data
(
id
),
&
response
,
errorMessage
))
showMessage
(
*
errorMessage
,
LogError
);
break
;
default:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment