This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Add tests that backtrace and backtrace_symbols produce correct results
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Sat, 19 Jan 2013 22:52:50 +0100
- Subject: Re: Add tests that backtrace and backtrace_symbols produce correct results
- References: <Pine.LNX.4.64.1301180229050.25419@digraph.polyomino.org.uk>
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> + if (strstr (symbols[i++], "read") == NULL)
> + {
> + /* Perhaps symbols[2] is __kernel_vsyscall? */
> + if (strstr (symbols[i++], "read") == NULL)
> + {
> + FAIL ();
This can only work if you have unwind information.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."