Re: 32 bit linux-2.6.24-git8 user_regs_structchange breaks opening kdump crashfiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Joe,

Can you verify that the attached patch works with your kdump?

Thanks,
  Dave

--- x86.c.orig
+++ x86.c
@@ -1773,10 +1773,18 @@ x86_init(int when)
 		if (x86_omit_frame_pointer())
 			machdep->flags |= OMIT_FRAME_PTR;
 		STRUCT_SIZE_INIT(user_regs_struct, "user_regs_struct");
-		MEMBER_OFFSET_INIT(user_regs_struct_ebp,
-			"user_regs_struct", "ebp");
-		MEMBER_OFFSET_INIT(user_regs_struct_esp,
-			"user_regs_struct", "esp");
+		if (MEMBER_EXISTS("user_regs_struct", "ebp"))
+			MEMBER_OFFSET_INIT(user_regs_struct_ebp,
+				"user_regs_struct", "ebp");
+		else
+			MEMBER_OFFSET_INIT(user_regs_struct_ebp,
+				"user_regs_struct", "bp");
+		if (MEMBER_EXISTS("user_regs_struct", "esp"))
+			MEMBER_OFFSET_INIT(user_regs_struct_esp,
+				"user_regs_struct", "esp");
+		else
+			MEMBER_OFFSET_INIT(user_regs_struct_esp,
+				"user_regs_struct", "sp");
 		if (!VALID_STRUCT(user_regs_struct)) {
 			/*  Use this hardwired version -- sometimes the 
 			 *  debuginfo doesn't pick this up even though
--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux