diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-05-12 22:09:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-05-12 22:09:53 (GMT) |
commit | 00e93226e72bdb18853580f553e32df111422936 (patch) | |
tree | 9c346903d4506cae2df19b9314cf307c783c0cb3 /plugins/dalvik/v35 | |
parent | e44ffc323c8a9d4b446baba6e0b131107312fa84 (diff) |
Simplified the way processors are registered.
Diffstat (limited to 'plugins/dalvik/v35')
-rw-r--r-- | plugins/dalvik/v35/core.c | 2 | ||||
-rw-r--r-- | plugins/dalvik/v35/processor.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/dalvik/v35/core.c b/plugins/dalvik/v35/core.c index 7e36691..1ecaf82 100644 --- a/plugins/dalvik/v35/core.c +++ b/plugins/dalvik/v35/core.c @@ -74,7 +74,7 @@ bool init_dalvik35_core(void) register_dalvik35_gtypes(); - result = register_processor_type("dalvik35", "Dalvik Virtual Machine v35", G_TYPE_DALVIK35_PROCESSOR); + result = register_processor_type(G_TYPE_DALVIK35_PROCESSOR); return result; diff --git a/plugins/dalvik/v35/processor.c b/plugins/dalvik/v35/processor.c index b1c13d2..507373b 100644 --- a/plugins/dalvik/v35/processor.c +++ b/plugins/dalvik/v35/processor.c @@ -97,6 +97,9 @@ static void g_dalvik35_processor_class_init(GDalvik35ProcessorClass *klass) proc = G_ARCH_PROCESSOR_CLASS(klass); + proc->key = "dalvik35"; + proc->desc = "Dalvik Virtual Machine v35"; + proc->disassemble = (disass_instr_fc)g_dalvik35_processor_disassemble; } |