Use generic_dis_filter() function to support dis command implementation.

E.g. With this patch:
crash> dis machine_kexec
0xffffffff8022dfd0 <machine_kexec>:     daddiu  sp,sp,-48
0xffffffff8022dfd4 <machine_kexec+4>:   sd      s2,24(sp)
0xffffffff8022dfd8 <machine_kexec+8>:   sd      s1,16(sp)
...

Signed-off-by: Huacai Chen <chenhua...@loongson.cn>
Signed-off-by: Youling Tang <tangyoul...@loongson.cn>
---
v1 -> v2:
 - No change.

 mips64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mips64.c b/mips64.c
index e4cdaf5..e427746 100644
--- a/mips64.c
+++ b/mips64.c
@@ -440,6 +440,7 @@ mips64_init(int when)
                machdep->memory_size = generic_memory_size;
                machdep->is_task_addr = mips64_is_task_addr;
                machdep->get_smp_cpus = mips64_get_smp_cpus;
+               machdep->dis_filter = generic_dis_filter;
                machdep->value_to_symbol = generic_machdep_value_to_symbol;
                machdep->init_kernel_pgd = NULL;
                break;
-- 
2.1.0

--
Crash-utility mailing list
Crash-utility@redhat.com
https://listman.redhat.com/mailman/listinfo/crash-utility

Reply via email to