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
aa3cc9f7
Commit
aa3cc9f7
authored
14 years ago
by
hjk
Browse files
Options
Downloads
Patches
Plain Diff
debugger: code cosmetics
parent
b66a6741
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/debugger/debuggeragents.cpp
+1
-1
1 addition, 1 deletion
src/plugins/debugger/debuggeragents.cpp
src/plugins/debugger/disassemblerlines.h
+6
-6
6 additions, 6 deletions
src/plugins/debugger/disassemblerlines.h
with
7 additions
and
7 deletions
src/plugins/debugger/debuggeragents.cpp
+
1
−
1
View file @
aa3cc9f7
...
@@ -389,7 +389,7 @@ void DisassemblerViewAgent::setContents(const DisassemblerLines &contents)
...
@@ -389,7 +389,7 @@ void DisassemblerViewAgent::setContents(const DisassemblerLines &contents)
d
->
editor
->
setDisplayName
(
_
(
"Disassembler (%1)"
).
arg
(
d
->
frame
.
function
));
d
->
editor
->
setDisplayName
(
_
(
"Disassembler (%1)"
).
arg
(
d
->
frame
.
function
));
d
->
cache
.
insert
(
frameKey
(
d
->
frame
),
contents
);
d
->
cache
.
insert
(
frameKey
(
d
->
frame
),
contents
);
int
lineNumber
=
contents
.
m_rowCache
[
d
->
frame
.
address
]
;
int
lineNumber
=
contents
.
lineForAddress
(
d
->
frame
.
address
)
;
if
(
lineNumber
&&
d
->
setMarker
)
if
(
lineNumber
&&
d
->
setMarker
)
d
->
editor
->
markableInterface
()
->
addMark
(
d
->
locationMark
,
lineNumber
);
d
->
editor
->
markableInterface
()
->
addMark
(
d
->
locationMark
,
lineNumber
);
...
...
This diff is collapsed.
Click to expand it.
src/plugins/debugger/disassemblerlines.h
+
6
−
6
View file @
aa3cc9f7
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
**
**
**************************************************************************/
**************************************************************************/
#ifndef DEBUGGER_
disassemblerlines
_H
#ifndef DEBUGGER_
DISASSEMBLERLINES
_H
#define DEBUGGER_
disassemblerlines
_H
#define DEBUGGER_
DISASSEMBLERLINES
_H
#include
<QtCore/QString>
#include
<QtCore/QString>
#include
<QtCore/QHash>
#include
<QtCore/QHash>
...
@@ -43,6 +43,7 @@ public:
...
@@ -43,6 +43,7 @@ public:
DisassemblerLine
()
:
address
(
0
)
{}
DisassemblerLine
()
:
address
(
0
)
{}
DisassemblerLine
(
const
QString
&
unparsed
);
DisassemblerLine
(
const
QString
&
unparsed
);
public
:
quint64
address
;
quint64
address
;
QString
data
;
QString
data
;
};
};
...
@@ -60,12 +61,11 @@ public:
...
@@ -60,12 +61,11 @@ public:
int
lineForAddress
(
quint64
address
)
const
;
int
lineForAddress
(
quint64
address
)
const
;
private
:
private
:
friend
class
DisassemblerViewAgent
;
QVector
<
DisassemblerLine
>
m_data
;
QVector
<
DisassemblerLine
>
m_data
;
QHash
<
quint64
,
int
>
m_rowCache
;
QHash
<
quint64
,
int
>
m_rowCache
;
};
};
}
}
// namespace Internal
}
}
// namespace Debugger
#endif
#endif
// DEBUGGER_DISASSEMBLERLINES_H
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