Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
1c7c49e2
Commit
1c7c49e2
authored
14 years ago
by
hjk
Browse files
Options
Downloads
Patches
Plain Diff
debugger: reorganize debuggerengine.h
parent
5268b0c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/debugger/debuggerengine.cpp
+5
-0
5 additions, 0 deletions
src/plugins/debugger/debuggerengine.cpp
src/plugins/debugger/debuggerengine.h
+28
-31
28 additions, 31 deletions
src/plugins/debugger/debuggerengine.h
with
33 additions
and
31 deletions
src/plugins/debugger/debuggerengine.cpp
+
5
−
0
View file @
1c7c49e2
...
...
@@ -1057,6 +1057,11 @@ bool DebuggerEngine::isSlaveEngine() const
return
d
->
m_masterEngine
!=
0
;
}
DebuggerEngine
*
DebuggerEngine
::
masterEngine
()
const
{
return
d
->
m_masterEngine
;
}
bool
DebuggerEngine
::
debuggerActionsEnabled
()
const
{
return
debuggerActionsEnabled
(
d
->
m_state
);
...
...
This diff is collapsed.
Click to expand it.
src/plugins/debugger/debuggerengine.h
+
28
−
31
View file @
1c7c49e2
...
...
@@ -133,7 +133,9 @@ public:
DebuggerEngine
*
parentEngine
=
0
);
virtual
~
DebuggerEngine
();
typedef
Internal
::
BreakpointId
BreakpointId
;
const
DebuggerStartParameters
&
startParameters
()
const
;
DebuggerStartParameters
&
startParameters
();
virtual
void
setToolTipExpression
(
const
QPoint
&
mousePos
,
TextEditor
::
ITextEditor
*
editor
,
int
cursorPos
);
...
...
@@ -171,7 +173,7 @@ public:
virtual
void
createSnapshot
();
virtual
void
updateAll
();
typedef
Internal
::
BreakpointId
BreakpointId
;
virtual
bool
stateAcceptsBreakpointChanges
()
const
{
return
true
;
}
virtual
void
attemptBreakpointSynchronization
();
virtual
bool
acceptsBreakpoint
(
BreakpointId
id
)
const
=
0
;
...
...
@@ -187,33 +189,6 @@ public:
virtual
void
handleRemoteSetupDone
(
int
gdbServerPort
,
int
qmlPort
);
virtual
void
handleRemoteSetupFailed
(
const
QString
&
message
);
protected
:
friend
class
Internal
::
DebuggerPluginPrivate
;
virtual
void
detachDebugger
();
virtual
void
exitDebugger
();
virtual
void
executeStep
();
virtual
void
executeStepOut
()
;
virtual
void
executeNext
();
virtual
void
executeStepI
();
virtual
void
executeNextI
();
virtual
void
executeReturn
();
virtual
void
continueInferior
();
virtual
void
interruptInferior
();
virtual
void
requestInterruptInferior
();
virtual
void
executeRunToLine
(
const
QString
&
fileName
,
int
lineNumber
);
virtual
void
executeRunToFunction
(
const
QString
&
functionName
);
virtual
void
executeJumpToLine
(
const
QString
&
fileName
,
int
lineNumber
);
virtual
void
executeDebuggerCommand
(
const
QString
&
command
);
virtual
void
frameUp
();
virtual
void
frameDown
();
public
:
const
DebuggerStartParameters
&
startParameters
()
const
;
DebuggerStartParameters
&
startParameters
();
virtual
Internal
::
ModulesHandler
*
modulesHandler
()
const
;
virtual
Internal
::
RegisterHandler
*
registerHandler
()
const
;
virtual
Internal
::
StackHandler
*
stackHandler
()
const
;
...
...
@@ -266,6 +241,7 @@ public:
virtual
void
updateViews
();
bool
isSlaveEngine
()
const
;
DebuggerEngine
*
masterEngine
()
const
;
signals
:
void
stateChanged
(
const
DebuggerState
&
state
);
...
...
@@ -323,9 +299,29 @@ protected:
virtual
void
shutdownInferior
()
=
0
;
virtual
void
shutdownEngine
()
=
0
;
virtual
void
detachDebugger
();
virtual
void
exitDebugger
();
virtual
void
executeStep
();
virtual
void
executeStepOut
()
;
virtual
void
executeNext
();
virtual
void
executeStepI
();
virtual
void
executeNextI
();
virtual
void
executeReturn
();
virtual
void
continueInferior
();
virtual
void
interruptInferior
();
virtual
void
requestInterruptInferior
();
virtual
void
executeRunToLine
(
const
QString
&
fileName
,
int
lineNumber
);
virtual
void
executeRunToFunction
(
const
QString
&
functionName
);
virtual
void
executeJumpToLine
(
const
QString
&
fileName
,
int
lineNumber
);
virtual
void
executeDebuggerCommand
(
const
QString
&
command
);
virtual
void
frameUp
();
virtual
void
frameDown
();
DebuggerRunControl
*
runControl
()
const
;
// FIXME: Protect.
protected
:
static
QString
msgWatchpointTriggered
(
BreakpointId
id
,
int
number
,
quint64
address
);
static
QString
msgWatchpointTriggered
(
BreakpointId
id
,
...
...
@@ -345,8 +341,9 @@ protected:
private
:
// Wrapper engine needs access to state of its subengines.
friend
class
Internal
::
QmlCppEngine
;
friend
class
Internal
::
DebuggerPluginPrivate
;
void
setState
(
DebuggerState
state
,
bool
forced
=
false
);
//void setSlaveEngine(bool value);
friend
class
DebuggerEnginePrivate
;
DebuggerEnginePrivate
*
d
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment