Add support for loading raw MIPS ramdumps.  The netdump change is to
handle the 64-bit ELFs created by the ramdump code.
---
 netdump.c |    6 ++++++
 ramdump.c |    2 ++
 2 files changed, 8 insertions(+)

diff --git a/netdump.c b/netdump.c
index 3262451..283213e 100644
--- a/netdump.c
+++ b/netdump.c
@@ -274,6 +274,12 @@ is_netdump(char *file, ulong source_query)
                                goto bailout;
                        break;
 
+               case EM_MIPS:
+                       if (machine_type_mismatch(file, "MIPS", NULL,
+                           source_query))
+                               goto bailout;
+                       break;
+
                default:
                        if (machine_type_mismatch(file, "(unknown)", NULL,
                            source_query))
diff --git a/ramdump.c b/ramdump.c
index 73a76be..ab93767 100644
--- a/ramdump.c
+++ b/ramdump.c
@@ -194,6 +194,8 @@ char *ramdump_to_elf(void)
                e_machine = EM_ARM;
        else if (machine_type("ARM64"))
                e_machine = EM_AARCH64;
+       else if (machine_type("MIPS"))
+               e_machine = EM_MIPS;
        else
                error(FATAL, "ramdump: unsupported machine type: %s\n", 
                        MACHINE_TYPE);
-- 
1.7.10.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to