[Crash-utility] [External Mail][ANNOUNCE] crash gcore command, version 1.6.0 is released
d.hatayama at fujitsu.com
d.hatayama at fujitsu.com
Fri Nov 13 08:59:05 UTC 2020
> > 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
More information about the Crash-utility
mailing list