Skip to content
Snippets Groups Projects
  1. Jan 04, 2021
  2. Jan 01, 2020
  3. Feb 26, 2019
    • Tom de Vries's avatar
      [libbacktrace] Fix btest-lto for older gcc · 067aef03
      Tom de Vries authored
      With gcc 4.8.5, btest_lto ends up with a privatized name for the variable with
      name 'global':
      ...
      $ nm btest_lto | grep ' d ' | grep global
      0000000000617150 d global.2530
      ...
      which makes test5 fail:
      ...
          test5: unexpected syminfo name got global.2530 expected global
      ...
      
      Fix this failure by accepting this type of name as a valid name in btest_lto.
      
      2019-02-26  Tom de Vries  <tdevries@suse.de>
      
      	* btest.c (test5): Allow global.* as minimal symbol name for global.
      
      From-SVN: r269217
      067aef03
  4. Feb 10, 2019
    • Tom de Vries's avatar
      [libbacktrace] Add btest_lto · c51b2c8c
      Tom de Vries authored
      Add libbacktrace test-case using -flto.
      
      2019-02-10  Tom de Vries  <tdevries@suse.de>
      
      	* Makefile.am (BUILDTESTS): Add btest_lto.
      	* Makefile.in: Regenerate.
      	* btest.c (test1, f2, f3, test3, f22, f23): Declare with
      	__attribute__((noclone)).
      
      From-SVN: r268736
      c51b2c8c
  5. Jan 01, 2019
  6. Jan 31, 2018
  7. Jan 03, 2018
  8. Jun 12, 2017
    • Ian Lance Taylor's avatar
      elf.c (backtrace_initialize): Always set *fileline_fn. · d1609a23
      Ian Lance Taylor authored
      	* elf.c (backtrace_initialize): Always set *fileline_fn.
      	* ttest.c: New file.
      	* btest.c: Move support functions into testlib.c.  Change calls to
      	check to pass file name.
      	* testlib.c: New file, copied from (part of) btest.c.
      	* testlib.h: New file, declarations for testlib.c.
      	* edtest.c: Use testlib.h and testlib.c.
      	* configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
      	* Makefile.am (btest_SOURCES): Add testlib.c.
      	(edtest_SOURCES): Likewise.
      	(CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
      	(ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
      	* configure, Makefile.in: Rebuild.
      
      From-SVN: r249111
      d1609a23
  9. Mar 08, 2017
  10. Jan 01, 2017
  11. Sep 11, 2016
  12. Jan 04, 2016
  13. May 29, 2015
    • Tristan Gingold's avatar
      libbacktrace: add support of PE/COFF · e24afc10
      Tristan Gingold authored
      libbacktrace/
      2015-05-29  Tristan Gingold  <gingold@adacore.com>
      
      	* pecoff.c: New file.
      	* Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
      	* Makefile.in: Regenerate.
      	* filetype.awk: Detect pecoff.
      	* configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
      	Add pecoff.
      	* btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
      	true.
      	* backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
      	* configure: Regenerate.
      	* pecoff.c: New file.
      
      From-SVN: r223859
      e24afc10
  14. Jan 05, 2015
  15. Jan 02, 2014
  16. Nov 28, 2013
  17. Nov 19, 2013
    • Jakub Jelinek's avatar
      backtrace.h (backtrace_syminfo_callback): Add symsize argument. · 1f96a712
      Jakub Jelinek authored
      	* backtrace.h (backtrace_syminfo_callback): Add symsize argument.
      	* elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
      	last argument.
      	* btest.c (struct symdata): Add size field.
      	(callback_three): Add symsize argument.  Copy it to the data->size
      	field.
      	(f23): Set symdata.size to 0.
      	(test5): Likewise.  If sizeof (int) > 1, lookup address of
      	((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
      	values.
      
      From-SVN: r205028
      1f96a712
  18. Nov 16, 2013
    • Ian Lance Taylor's avatar
      backtrace.h (backtrace_syminfo): Update comment and parameter name to take any... · cfa658e4
      Ian Lance Taylor authored
      backtrace.h (backtrace_syminfo): Update comment and parameter name to take any address, not just a PC value.
      
      	* backtrace.h (backtrace_syminfo): Update comment and parameter
      	name to take any address, not just a PC value.
      	* elf.c (STT_OBJECT): Define.
      	(elf_nosyms): Rename parameter pc to addr.
      	(elf_symbol_search): Rename local variable pc to addr.
      	(elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
      	(elf_syminfo): Rename parameter pc to addr.
      	* btest.c (global): New global variable.
      	(test5): New test.
      	(main): Call test5.
      
      From-SVN: r204904
      cfa658e4
  19. Jan 14, 2013
  20. Oct 04, 2012
  21. Sep 19, 2012
  22. Sep 18, 2012
  23. Sep 17, 2012
    • Ian Lance Taylor's avatar
      libbacktrace/: · eff02e4f
      Ian Lance Taylor authored
      	* Initial implementation.
      
      ./:
      	* MAINTAINERS (Various Maintainers): Add libbacktrace.
      	* configure.ac (host_libs): Add libbacktrace.
      	(target_libraries): Add libbacktrace.
      	* Makefile.def (host_modules): Add libbacktrace.
      	(target_modules): Likewise.
      	* configure, Makefile.in: Rebuild.
      
      gcc/go:
      	* config-lang.in (target_libs): Add target-libbacktrace.
      
      From-SVN: r191397
      eff02e4f
Loading