[Crash-utility] [PATCH 3/3] MIPS64: Add support for ramdump type

Youling Tang tangyouling at loongson.cn
Fri Apr 23 07:42:11 UTC 2021


Add the matchtype of MIPS64 in ramdump_to_elf().

Signed-off-by: Youling Tang <tangyouling at loongson.cn>
---
 ramdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ramdump.c b/ramdump.c
index 4c4a920..a206fcb 100644
--- a/ramdump.c
+++ b/ramdump.c
@@ -184,7 +184,7 @@ char *ramdump_to_elf(void)
 		e_machine = EM_ARM;
 	else if (machine_type("ARM64"))
 		e_machine = EM_AARCH64;
-	else if (machine_type("MIPS"))
+	else if (machine_type("MIPS") || machine_type("MIPS64"))
 		e_machine = EM_MIPS;
 	else if (machine_type("X86_64"))
 		e_machine = EM_X86_64;
-- 
2.1.0




More information about the Crash-utility mailing list