This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] mips: Fix bracktrace result for signal frames
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 17 Feb 2020 22:06:15 +0000
- Subject: Re: [PATCH] mips: Fix bracktrace result for signal frames
- Ironport-sdr: mH0RZj5Qipu0Uyc6EDGAtI9tnHYiPJjW42Ab63n0CUztjVrjP997swkpIUyitKfghi22bx2mrt 5rKC8d1+OeWmfb2eyQTxG36gHkioxGhL4rxlK3cbcfZ15tl5CFzue67B7f/LdS2fxAmWoC7NfI fBnZofaSLpCWQobG/D9lCRfoSi1y3CHi6E4oSHNtc9mnrtUOkObV1tT+xJFEqFMAbEbQ3t+1io PJ57KjSVmbEiV3+MwyoVecoWTBjwzkizGdW2IqkOw4OTaRv2Q93qLtGssYvrrYeerA2/p3SuyB PD8=
- Ironport-sdr: nAyyHt06yvGwwNi3sws6/xWb4cGQiCBYn+Mxg9JPvKx3G6rXgXx2qFsODFH6hXG8g20o2xzysF 8b5PPt5gfTE3ulxyEQ0uPE5AM2+qIvqVsy6tSvG+D5sCTC32SGfwXsdunOJGBI7OJkpJq2m9ga oAf+mU+QWg2AT+kLVw2wGRn3eZYQuIZRVt/t9ptAHfeojPcll6UeB2Q+AHtOWURpO1rOhnaaSB kqVTNt+LXqkSuWPpjPRAfxaQUF+kh+L6N6LJHSHqBFGxC2gP9L2kDZ6k/buF2x00DMw0259YlC F6w=
- References: <20200217135944.4688-1-adhemerval.zanella@linaro.org>
On Mon, 17 Feb 2020, Adhemerval Zanella wrote:
> MIPS fallback code handle a frame where its FDE can not be obtained
> (for instance a signal frame) by reading the kernel allocated signal frame
> and adding '2' to the value of 'sc_pc' [1]. The added value is used to
> recognize an end of an EH region on mips16 [2].
>
> The fix adjust the obtained signal frame value and remove the libgcc added
> value by checking if the previous frame is a signal frame one.
>
> Checked with backtrace and tst-sigcontext-get_pc tests on mips-linux-gnu
> and mips64-linux-gnu.
OK.
--
Joseph S. Myers
joseph@codesourcery.com