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
Tobias Hunger
qt-creator
Commits
0c43604e
Commit
0c43604e
authored
Dec 14, 2010
by
hjk
Browse files
debugger: make memory view updatable
Still some flickering and no marks which parts changed.
parent
fbc00570
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerengine.cpp
View file @
0c43604e
...
...
@@ -520,14 +520,17 @@ void DebuggerEngine::gotoLocation(const QString &file, int line, bool setMarker)
d
->
doRemoveLocationMark
();
bool
newEditor
=
false
;
ITextEditor
*
editor
=
BaseTextEditor
::
openEditorAt
(
file
,
line
,
0
,
QString
(),
EditorManager
::
IgnoreNavigationHistory
,
&
newEditor
);
if
(
!
editor
)
return
;
if
(
newEditor
)
editor
->
setProperty
(
Constants
::
OPENED_BY_DEBUGGER
,
true
);
EditorManager
*
editorManager
=
EditorManager
::
instance
();
QList
<
IEditor
*>
editors
=
editorManager
->
editorsForFileName
(
file
);
if
(
editors
.
isEmpty
())
{
editors
.
append
(
editorManager
->
openEditor
(
file
,
QString
(),
EditorManager
::
IgnoreNavigationHistory
));
editors
.
back
()
->
setProperty
(
Constants
::
OPENED_BY_DEBUGGER
,
true
);
}
ITextEditor
*
texteditor
=
qobject_cast
<
ITextEditor
*>
(
editors
.
back
());
if
(
texteditor
)
texteditor
->
gotoLine
(
line
,
0
);
if
(
setMarker
)
d
->
m_locationMark
.
reset
(
new
LocationMark
(
file
,
line
));
}
...
...
src/plugins/debugger/memoryagent.cpp
View file @
0c43604e
...
...
@@ -84,6 +84,7 @@ void MemoryAgent::createBinEditor(quint64 addr)
IEditor
*
editor
=
editorManager
->
openEditorWithContents
(
Core
::
Constants
::
K_DEFAULT_BINARY_EDITOR_ID
,
&
titlePattern
);
editorManager
->
activateEditor
(
editor
);
if
(
editor
)
{
editor
->
setProperty
(
Debugger
::
Constants
::
OPENED_BY_DEBUGGER
,
true
);
editor
->
setProperty
(
Debugger
::
Constants
::
OPENED_WITH_MEMORY
,
true
);
...
...
@@ -126,7 +127,6 @@ void MemoryAgent::addLazyData(QObject *editorToken, quint64 addr,
{
IEditor
*
editor
=
qobject_cast
<
IEditor
*>
(
editorToken
);
if
(
editor
&&
editor
->
widget
())
{
Core
::
EditorManager
::
instance
()
->
activateEditor
(
editor
);
QMetaObject
::
invokeMethod
(
editor
->
widget
(),
"addLazyData"
,
Q_ARG
(
quint64
,
addr
/
BinBlockSize
),
Q_ARG
(
QByteArray
,
ba
));
}
...
...
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