Re: Using libbacktrace in libgfortran: some questions

2015-08-14 Thread FX
> Patch tested and committed with this ChangeLog entry. > > 2015-08-13 Ian Lance Taylor > > * dwarf.c (read_function_entry): Add vec_inlined parameter. > Change all callers. Thanks, this is great! I am going to submit the libgfortran patch to use libbacktrace today. Cheers, FX

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread Ian Lance Taylor
On Thu, Aug 13, 2015 at 8:50 AM, FX wrote: >> And yet, that patch has absolutely nothing to do with libbacktrace. >> Hmmm. Let's try this one. > > Works perfectly with the patch: Patch tested and committed with this ChangeLog entry. 2015-08-13 Ian Lance Taylor * dwarf.c (read_function_entry

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread FX
> And yet, that patch has absolutely nothing to do with libbacktrace. > Hmmm. Let's try this one. Works perfectly with the patch: Program aborted. Backtrace: #0 0xf75e5b9b _gfortrani_show_backtrace ../../../../trunk/libgfortran/runtime/backtrace.c:113 #1 0xf75e6aa7 _gfortrani_sys_abort

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread Ian Lance Taylor
On Thu, Aug 13, 2015 at 8:25 AM, Ian Lance Taylor wrote: > On Thu, Aug 13, 2015 at 7:11 AM, FX wrote: >> >>> I don't know why this is not working. Everything looks fine in the >>> a.out that you sent. Unfortunately, I think you sent the one built >>> without libbacktrace. Can you send me the o

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread Ian Lance Taylor
On Thu, Aug 13, 2015 at 7:11 AM, FX wrote: > >> I don't know why this is not working. Everything looks fine in the >> a.out that you sent. Unfortunately, I think you sent the one built >> without libbacktrace. Can you send me the one built with libbacktrace? > > Attached is the a.out with libgf

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread FX
> You might also take a look at the patch posted to PR 54572 which was my > attempt to use libbacktrace a few years ago. While I got symbolic backtraces > working somewhat, unfortunately I never got it to work completely since it > crashed somewhere in libbacktrace in some cases, but maybe whate

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread FX
> You should always get accurate PC values even > on systems where libbacktrace does not yet generate file/line > information. Cool! We’ll be able to use it unconditionaly with all targets, which is very nice. > I don't know why this is not working. Everything looks fine in the > a.out that yo

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread Janne Blomqvist
Resending in text/plain, sorry for any extra spam... On Thu, Aug 13, 2015 at 4:44 PM, Ian Lance Taylor wrote: > > FX writes: > > > 1. It appears that even on platforms with BACKTRACE_SUPPORTED == 0 > > (such as x86_64-apple-darwin), libbacktrace is built and able to > > perform a nonsymbolic bac

Re: Using libbacktrace in libgfortran: some questions

2015-08-13 Thread Ian Lance Taylor
FX writes: > 1. It appears that even on platforms with BACKTRACE_SUPPORTED == 0 > (such as x86_64-apple-darwin), libbacktrace is built and able to > perform a nonsymbolic backtrace (which appears accurate). Is that a > feature? Can I rely on it? Yes, that is a feature. You should always get acc