diff options
| author | Ajax <commial@gmail.com> | 2016-06-15 09:52:59 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-06-15 09:52:59 +0200 |
| commit | f56fb32b86183953f2c933a094b0eb12a870cfb9 (patch) | |
| tree | b59c63621fe2d60bc4066706fadd84d3ae62b6b0 /miasm2/analysis/machine.py | |
| parent | a0b2c5a397434e9ca0f898fd89742572549f594a (diff) | |
| download | miasm-f56fb32b86183953f2c933a094b0eb12a870cfb9.tar.gz miasm-f56fb32b86183953f2c933a094b0eb12a870cfb9.zip | |
Get back the name of the architecture asked in Machine
Diffstat (limited to 'miasm2/analysis/machine.py')
| -rw-r--r-- | miasm2/analysis/machine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/miasm2/analysis/machine.py b/miasm2/analysis/machine.py index f963628c..6af403ff 100644 --- a/miasm2/analysis/machine.py +++ b/miasm2/analysis/machine.py @@ -134,6 +134,7 @@ class Machine(object): self.__log_arch = log_arch self.__base_expr = arch.base_expr self.__ir = ir + self.__name = machine_name @property def dis_engine(self): @@ -171,6 +172,10 @@ class Machine(object): def base_expr(self): return self.__base_expr + @property + def name(self): + return self.__name + @classmethod def available_machine(cls): "Return a list of supported machines" |