This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: more patches
- To: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Subject: Re: more patches
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 08 Jun 1998 21:15:09 -0700
- Cc: libc-hacker@gnu.org
- References: <199806090311.XAA02515@rabi.phys.columbia.edu>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Zack Weinberg <zack@rabi.phys.columbia.edu> writes:
> We know the ranges of address space occupied by program code. We can
> scan up the stack looking for numbers in those ranges. Those are very
> likely to be return addresses. We report all those, and then weed out
> false positives in backtrace_symbols by checking against the symbol
> table. (It might not be necessary to bother; the programmer can
> easily spot them.)
Most platforms (except for Alpha) provide easy ways to find the
information. OK, I don't know about Arm but I talked to Richard today
and he said that at least SPARC, m68k, PPC have easy ways to implement
this. Arm is unknown and for MIPS there is a standard algorithm to do
this.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------