Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
744b0ef0
Commit
744b0ef0
authored
Mar 25, 2010
by
hjk
Browse files
debugger: fine-tuning change of breakpoint conditions and ignore count
parent
0d4b3ee8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
744b0ef0
...
...
@@ -2213,6 +2213,14 @@ void GdbEngine::handleBreakList(const GdbMi &table)
m_breakListOutdated
=
false
;
}
void
GdbEngine
::
handleBreakDisable
(
const
GdbResponse
&
response
)
{
BreakHandler
*
handler
=
manager
()
->
breakHandler
();
if
(
response
.
resultClass
==
GdbResultDone
)
{
handler
->
updateMarkers
();
}
}
void
GdbEngine
::
handleBreakIgnore
(
const
GdbResponse
&
response
)
{
int
index
=
response
.
cookie
.
toInt
();
...
...
@@ -2421,24 +2429,30 @@ void GdbEngine::attemptBreakpointSynchronization()
}
else
if
(
data
->
bpNumber
.
toInt
())
{
if
(
data
->
bpMultiple
&&
data
->
bpFileName
.
isEmpty
())
{
postCommand
(
"info break "
+
data
->
bpNumber
,
RebuildBreakpointModel
,
NeedsStop
|
RebuildBreakpointModel
,
CB
(
handleBreakInfo
),
data
->
bpNumber
.
toInt
());
continue
;
}
// update conditions if needed
if
(
data
->
condition
!=
data
->
bpCondition
&&
!
data
->
conditionsMatch
())
if
(
data
->
condition
!=
data
->
bpCondition
&&
!
data
->
conditionsMatch
())
{
// Update conditions if needed.
postCommand
(
"condition "
+
data
->
bpNumber
+
' '
+
data
->
condition
,
RebuildBreakpointModel
,
NeedsStop
|
RebuildBreakpointModel
,
CB
(
handleBreakCondition
),
index
);
// update ignorecount if needed
if
(
data
->
ignoreCount
!=
data
->
bpIgnoreCount
)
}
else
// Because gdb won't do both changes at a time anyway.
if
(
data
->
ignoreCount
!=
data
->
bpIgnoreCount
)
{
// Update ignorecount if needed.
postCommand
(
"ignore "
+
data
->
bpNumber
+
' '
+
data
->
ignoreCount
,
RebuildBreakpointModel
,
NeedsStop
|
RebuildBreakpointModel
,
CB
(
handleBreakIgnore
),
index
);
continue
;
}
if
(
!
data
->
enabled
&&
data
->
bpEnabled
)
{
postCommand
(
"-break-disable "
+
data
->
bpNumber
,
NeedsStop
|
RebuildBreakpointModel
);
NeedsStop
|
RebuildBreakpointModel
,
CB
(
handleBreakInfo
));
data
->
bpEnabled
=
false
;
continue
;
}
}
}
...
...
src/plugins/debugger/gdb/gdbengine.h
View file @
744b0ef0
...
...
@@ -337,6 +337,7 @@ private: ////////// View & Data Stuff //////////
void
handleBreakList
(
const
GdbResponse
&
response
);
void
handleBreakList
(
const
GdbMi
&
table
);
void
handleBreakIgnore
(
const
GdbResponse
&
response
);
void
handleBreakDisable
(
const
GdbResponse
&
response
);
void
handleBreakInsert1
(
const
GdbResponse
&
response
);
void
handleBreakInsert2
(
const
GdbResponse
&
response
);
void
handleBreakCondition
(
const
GdbResponse
&
response
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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