This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: more patches


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]