This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
backtrace semantics
- From: David Miller <davem at davemloft dot net>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 18 Jan 2013 17:14:34 -0500 (EST)
- Subject: backtrace semantics
First, thanks for adding all the new backtrace() test cases.
There seems to be an inconsistency about how to handle the top-most
frame in the backtrace.
x86 for example, includes the caller of backtrace(), and this matches
the expectation of the new testcases.
Whereas s390 and sparc, for example, elide the backtrace() caller's
frame from the backtrace, and starts reporting at the frame
immediately afterwards.
Which one is correct?