This is the mail archive of the
mailing list for the glibc project.
Re: Add tests that backtrace and backtrace_symbols produce correctresults
On 1/20/2013 4:14 AM, Andreas Schwab wrote:
> "Joseph S. Myers" <email@example.com> writes:
>> There must surely be a call frame,
> It's a leaf function.
That just means no stack frame, but the function should still have a call frame in the backtrace. Presumably the PC is in the __read function, with the link register holding the return address to the caller, and that should give the stack frame walker the innermost frame.
Chris Metcalf, Tilera Corp.