- } else if (machine_type("X86")) {
+ } else if (machine_type("X86") || machine_type("PPC")) {
note32 = (void *)dd->notes_buf + tot;
len = sizeof(Elf32_Nhdr);
len = roundup(len + note32->n_namesz, 4);
@@ -1202,6 +1236,8 @@ __diskdump_memory_dump(FILE *fp)
fprintf(fp, "(EM_X86_64)
"); break;
case EM_IA_64:
fprintf(fp, "(EM_IA_64)
"); break;
+ case EM_PPC:
+ fprintf(fp, "(EM_PPC)
"); break;
case EM_PPC64:
fprintf(fp, "(EM_PPC64)
"); break;
case EM_S390:
diff --git a/ppc.c b/ppc.c
index 2a10fac..78c9178 100755
--- a/ppc.c
+++ b/ppc.c
@@ -67,6 +67,9 @@ static void ppc_display_machine_stats(void);
static void ppc_dump_line_number(ulong);
static struct line_number_hook ppc_line_number_hooks[];
+/* Defined in diskdump.c */
+extern void process_elf32_notes(void *, ulong);
+
/*
* Do all necessary machine-specific setup here. This is called twice,
* before and after GDB has been initialized.
@@ -79,6 +82,10 @@ ppc_init(int when)
switch (when)
{
+ case SETUP_ENV:
+ machdep->process_elf_notes = process_elf32_notes;
+ break;
+
case PRE_SYMTAB:
machdep->verify_symbol = ppc_verify_symbol;
if (pc->flags & KERNEL_DEBUG_QUERY)
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility