This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] asan testsuite (take 3)


On Fri, Nov 16, 2012 at 2:06 AM, Jakub Jelinek <jakub@redhat.com> wrote:
>
> Haven't studied libbacktrace too much, can it provide right now
> just function name or function name and file:line info too?

Yes.  backtrace_syminfo reads the symbol table to map a PC value to a
symbol name.  backtrace_pcinfo reads the debug info to map a PC value
to file:line and function.  The latter can return multiple instances
of file:line/function information for the case of an inlined function.

Also libbacktrace can separate the gathering of the backtrace from the
symbolization of the backtrace.  But it is true that libbacktrace,
which uses the unwind info, will always be slower than walking up a
linked list of frame pointers.

Ian


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