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
7528b3b0
Commit
7528b3b0
authored
Sep 08, 2010
by
hjk
Browse files
debugger: fix editing of breakpoint conditions
parent
1dab2383
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/breakhandler.cpp
View file @
7528b3b0
...
...
@@ -298,6 +298,15 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
if
(
role
==
BreakpointFunctionNameRole
)
return
data
->
funcName
;
if
(
role
==
BreakpointConditionRole
)
return
data
->
condition
;
if
(
role
==
BreakpointIgnoreCountRole
)
return
data
->
ignoreCount
;
if
(
role
==
BreakpointThreadSpecRole
)
return
data
->
threadSpec
;
switch
(
mi
.
column
())
{
case
0
:
if
(
role
==
Qt
::
DisplayRole
)
{
...
...
tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
View file @
7528b3b0
...
...
@@ -1837,8 +1837,20 @@ void testTypedef()
++
t2
;
};
void
testConditional
(
const
QString
&
str
)
{
//
QString
res
=
str
;
res
+=
"x"
;
res
+=
"x"
;
res
+=
"x"
;
}
void
testStuff
()
{
testConditional
(
"foo"
);
testConditional
(
"bar"
);
testConditional
(
"zzz"
);
Foo
*
f1
=
new
Foo
(
1
);
X
*
x
=
new
X
();
Foo
*
f2
=
x
;
...
...
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