Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6484c14a
Commit
6484c14a
authored
Apr 21, 2011
by
Friedemann Kleint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugger: Improve register check for memory layout.
parent
8d4d88f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
src/plugins/debugger/watchwindow.cpp
src/plugins/debugger/watchwindow.cpp
+12
-5
No files found.
src/plugins/debugger/watchwindow.cpp
View file @
6484c14a
...
...
@@ -295,11 +295,18 @@ static inline MemoryMarkupList
return
result
;
// Fixme: Exact size not known, no point in filling if no children.
// Punch in registers as 1-byte markers on top.
const
RegisterMapConstIt
regcEnd
=
registerMap
.
constEnd
();
for
(
RegisterMapConstIt
it
=
registerMap
.
constBegin
();
it
!=
regcEnd
;
++
it
)
if
(
it
.
key
()
-
address
<
size
)
ranges
[
it
.
key
()
-
address
]
=
ColorNumberToolTipPair
(
registerColorNumber
,
WatchWindow
::
tr
(
"Register <i>%1</i>"
).
arg
(
it
.
value
()));
for
(
RegisterMapConstIt
it
=
registerMap
.
constBegin
();
it
!=
regcEnd
;
++
it
)
{
if
(
it
.
key
()
>=
address
)
{
const
quint64
offset
=
it
.
key
()
-
address
;
if
(
offset
<
size
)
{
ranges
[
offset
]
=
ColorNumberToolTipPair
(
registerColorNumber
,
WatchWindow
::
tr
(
"Register <i>%1</i>"
).
arg
(
it
.
value
()));
}
else
{
break
;
// Sorted.
}
}
}
// for registers.
if
(
debug
)
{
QDebug
dbg
=
qDebug
().
nospace
();
dbg
<<
rootToolTip
<<
' '
<<
address
<<
' '
<<
size
<<
'\n'
;
...
...
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