Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
0ecb0365
There was an error fetching the commit references. Please try again later.
Commit
0ecb0365
authored
11 years ago
by
Mathieu Vaillancourt
Browse files
Options
Downloads
Patches
Plain Diff
Show symbols in disasm
parent
67095f80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/citra_qt/disasm.cpp
+9
-1
9 additions, 1 deletion
src/citra_qt/disasm.cpp
with
9 additions
and
1 deletion
src/citra_qt/disasm.cpp
+
9
−
1
View file @
0ecb0365
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include
"core/core.h"
#include
"core/core.h"
#include
"common/break_points.h"
#include
"common/break_points.h"
#include
"common/symbols.h"
#include
"core/arm/interpreter/armdefs.h"
#include
"core/arm/interpreter/armdefs.h"
#include
"core/arm/disassembler/arm_disasm.h"
#include
"core/arm/disassembler/arm_disasm.h"
...
@@ -20,7 +21,7 @@ GDisAsmView::GDisAsmView(QWidget* parent, EmuThread& emu_thread) : QDockWidget(p
...
@@ -20,7 +21,7 @@ GDisAsmView::GDisAsmView(QWidget* parent, EmuThread& emu_thread) : QDockWidget(p
breakpoints
=
new
BreakPoints
();
breakpoints
=
new
BreakPoints
();
model
=
new
QStandardItemModel
(
this
);
model
=
new
QStandardItemModel
(
this
);
model
->
setColumnCount
(
2
);
model
->
setColumnCount
(
3
);
disasm_ui
.
treeView
->
setModel
(
model
);
disasm_ui
.
treeView
->
setModel
(
model
);
RegisterHotkey
(
"Disassembler"
,
"Start/Stop"
,
QKeySequence
(
Qt
::
Key_F5
),
Qt
::
ApplicationShortcut
);
RegisterHotkey
(
"Disassembler"
,
"Start/Stop"
,
QKeySequence
(
Qt
::
Key_F5
),
Qt
::
ApplicationShortcut
);
...
@@ -52,6 +53,13 @@ void GDisAsmView::Init()
...
@@ -52,6 +53,13 @@ void GDisAsmView::Init()
disasm
->
disasm
(
curInstAddr
,
Memory
::
Read32
(
curInstAddr
),
result
);
disasm
->
disasm
(
curInstAddr
,
Memory
::
Read32
(
curInstAddr
),
result
);
model
->
setItem
(
i
,
0
,
new
QStandardItem
(
QString
(
"0x%1"
).
arg
((
uint
)(
curInstAddr
),
8
,
16
,
QLatin1Char
(
'0'
))));
model
->
setItem
(
i
,
0
,
new
QStandardItem
(
QString
(
"0x%1"
).
arg
((
uint
)(
curInstAddr
),
8
,
16
,
QLatin1Char
(
'0'
))));
model
->
setItem
(
i
,
1
,
new
QStandardItem
(
QString
(
result
)));
model
->
setItem
(
i
,
1
,
new
QStandardItem
(
QString
(
result
)));
if
(
Symbols
::
HasSymbol
(
curInstAddr
))
{
TSymbol
symbol
=
Symbols
::
GetSymbol
(
curInstAddr
);
model
->
setItem
(
i
,
2
,
new
QStandardItem
(
QString
(
"%1 - Size:%2"
).
arg
(
QString
::
fromStdString
(
symbol
.
name
))
.
arg
(
symbol
.
size
/
4
)));
// divide by 4 to get instruction count
}
curInstAddr
+=
4
;
curInstAddr
+=
4
;
}
}
disasm_ui
.
treeView
->
resizeColumnToContents
(
0
);
disasm_ui
.
treeView
->
resizeColumnToContents
(
0
);
...
...
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