Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
8a2e21eb
Commit
8a2e21eb
authored
Nov 30, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: add a few more asserts
parent
cf154b3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
src/plugins/debugger/breakhandler.cpp
src/plugins/debugger/breakhandler.cpp
+2
-11
src/plugins/debugger/debuggerengine.cpp
src/plugins/debugger/debuggerengine.cpp
+9
-3
No files found.
src/plugins/debugger/breakhandler.cpp
View file @
8a2e21eb
...
...
@@ -862,24 +862,15 @@ void BreakHandler::updateLineNumberFromMarker(BreakpointId id, int lineNumber)
Iterator
it
=
m_storage
.
find
(
id
);
it
->
response
.
pending
=
false
;
QTC_ASSERT
(
it
!=
m_storage
.
end
(),
return
);
//if (data.markerLineNumber == lineNumber)
// return;
if
(
it
->
response
.
lineNumber
!=
lineNumber
)
{
it
->
response
.
lineNumber
=
lineNumber
;
// FIXME: Should we tell gdb about the change?
// Ignore it for now, as we would require re-compilation
// and debugger re-start anyway.
//if (0 && data.bpLineNumber) {
// if (!data.bpNumber.trimmed().isEmpty()) {
// data.pending = true;
// }
//}
it
->
response
.
lineNumber
=
lineNumber
;
}
// Ignore updates to the "real" line number while the debugger is
// running, as this can be triggered by moving the breakpoint to
// the next line that generated code.
// FIXME: Do we need yet another data member?
if
(
it
->
response
.
number
==
0
)
{
// FIXME: Do we need yet another data member?
it
->
data
.
lineNumber
=
lineNumber
;
}
updateMarker
(
id
);
...
...
src/plugins/debugger/debuggerengine.cpp
View file @
8a2e21eb
...
...
@@ -1237,18 +1237,24 @@ void DebuggerEngine::attemptBreakpointSynchronization()
d
->
m_disassemblerViewAgent
.
updateBreakpointMarkers
();
}
void
DebuggerEngine
::
insertBreakpoint
(
BreakpointId
)
void
DebuggerEngine
::
insertBreakpoint
(
BreakpointId
id
)
{
BreakpointState
state
=
breakHandler
()
->
state
(
id
);
QTC_ASSERT
(
state
==
BreakpointInsertRequested
,
qDebug
()
<<
state
);
QTC_ASSERT
(
false
,
/**/
);
}
void
DebuggerEngine
::
removeBreakpoint
(
BreakpointId
)
void
DebuggerEngine
::
removeBreakpoint
(
BreakpointId
id
)
{
BreakpointState
state
=
breakHandler
()
->
state
(
id
);
QTC_ASSERT
(
state
==
BreakpointRemoveRequested
,
qDebug
()
<<
state
);
QTC_ASSERT
(
false
,
/**/
);
}
void
DebuggerEngine
::
changeBreakpoint
(
BreakpointId
)
void
DebuggerEngine
::
changeBreakpoint
(
BreakpointId
id
)
{
BreakpointState
state
=
breakHandler
()
->
state
(
id
);
QTC_ASSERT
(
state
==
BreakpointChangeRequested
,
qDebug
()
<<
state
);
QTC_ASSERT
(
false
,
/**/
);
}
...
...
Write
Preview
Markdown
is supported
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