This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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]

FYI unwinder src/stack.c simplification


Hi Mark,

I just found that with
      __libdwfl_attach_state_for_core hooked into dwfl_core_file_report
and
      __libdwfl_attach_state_for_pid  hooked into dwfl_linux_proc_report

we no longer need most of the code as dwfl_standard_argp handles it all.

Currently it was calling dwfl_linux_proc_report / dwfl_core_file_report twice.

That is not the case for tests/backtrace.c which intentionally does not use
dwfl_standard_argp so it has to do everything by hand (=to call
dwfl_core_file_report and dwfl_linux_proc_report, nothing more).


Jan

Attachment: 3.ksh
Description: Text document


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