repo.or.cz
/
idi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
.
[idi.git]
/
disasm
/
dummy.py
blob
91f9b18164e42d29201d7ed4c55e4aa254071efa
1
import
disasm
2
import
file
.
file
3
import
file
.
map
4
5
class
dummy
(
disasm
.
disasm
):
6
"The dummy disassembler"
7
# This is a "disassembler" that just takes the whole file
8
# as data. ;-)
9
10
# Sweep the whole map and disassemble code segments
11
def
sweep
(
self
):
12
map
=
self
.
file
.
map
13
map
.
new_segment
(
file
.
map
.
seg_data
(
map
,
0
,
self
.
file
.
size
))