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
Marco Bubke
flatpak-qt-creator
Commits
739144ce
Commit
739144ce
authored
Dec 01, 2010
by
hjk
Browse files
debugger: re-enable breakpoint updates after library loading
parent
bc53ce72
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
739144ce
...
@@ -2224,11 +2224,9 @@ void GdbEngine::handleBreakInsert2(const GdbResponse &response)
...
@@ -2224,11 +2224,9 @@ void GdbEngine::handleBreakInsert2(const GdbResponse &response)
void
GdbEngine
::
reloadBreakListInternal
()
void
GdbEngine
::
reloadBreakListInternal
()
{
{
/*
postCommand
(
"-break-list"
,
postCommand
(
"-break-list"
,
NeedsStop
|
RebuildBreakpointModel
,
NeedsStop
|
RebuildBreakpointModel
,
CB
(
handleBreakList
));
CB
(
handleBreakList
));
*/
}
}
void
GdbEngine
::
handleBreakList
(
const
GdbResponse
&
response
)
void
GdbEngine
::
handleBreakList
(
const
GdbResponse
&
response
)
...
@@ -2265,19 +2263,14 @@ void GdbEngine::handleBreakList(const GdbMi &table)
...
@@ -2265,19 +2263,14 @@ void GdbEngine::handleBreakList(const GdbMi &table)
if
(
num
<=
0
)
if
(
num
<=
0
)
bkpts
.
removeAt
(
i
);
bkpts
.
removeAt
(
i
);
}
}
//qDebug() << "LEFT" << bkpts.size() << "BREAKPOINTS";
}
}
foreach
(
const
GdbMi
&
bkpt
,
bkpts
)
{
foreach
(
const
GdbMi
&
bkpt
,
bkpts
)
{
BreakpointResponse
needle
;
BreakpointResponse
needle
;
needle
.
fileName
=
_
(
"xx"
);
needle
.
number
=
bkpt
.
findChild
(
"number"
).
data
().
toInt
(
);
BreakpointId
id
=
breakHandler
()
->
findSimilarBreakpoint
(
needle
);
BreakpointId
id
=
breakHandler
()
->
findSimilarBreakpoint
(
needle
);
//qDebug() << "\n\nGOT: " << bkpt.toString() << '\n' << temp.toString();
// FIXME: use updateBreakpointDataFromOutput()
if
(
id
!=
BreakpointId
(
-
1
))
{
if
(
id
!=
BreakpointId
(
-
1
))
{
//qDebug() << " FROM: " << data->toString();
updateBreakpointDataFromOutput
(
id
,
bkpt
);
updateBreakpointDataFromOutput
(
id
,
bkpt
);
//qDebug() << " TO: " << data->toString();
}
else
{
}
else
{
qDebug
()
<<
" NOTHING SUITABLE FOUND"
;
qDebug
()
<<
" NOTHING SUITABLE FOUND"
;
showMessage
(
_
(
"CANNOT FIND BP: "
+
bkpt
.
toString
()));
showMessage
(
_
(
"CANNOT FIND BP: "
+
bkpt
.
toString
()));
...
...
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