> it looks that the commit
c975008e61121ef8785622c3bc26964da8fe0deb of crash utility
> has the condition MEMBER_EXISTS("pt_regs", "stackframe").
This condition can be used to judge before or after 4.7,This change is accompanied by
the variable stackframe.
> I guess with this patch set, gcore would result in similar issue for
> kernels before 4.7.
Before kernel 4.7,user_eframe_offset is "SIZE(pt_regs) + 16",after 4.7
user_eframe_offset is SIZE(pt_regs) ,Anderson's change can compatible with before and
after kernel 4.7,so gcore can use "user_eframe_offset" directly.
+ if (MEMBER_EXISTS("pt_regs", "stackframe"))
+ machdep->machspec->user_eframe_offset = SIZE(pt_regs);
+ else
+ machdep->machspec->user_eframe_offset = SIZE(pt_regs) + 16;
+
I understand. Sorry for letting you make straightforward explanation...
Then, I'll include the patch into the next v1.6.1 release.
Thanks.
HATAYAMA, Daisuke