aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/mmap.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-03Update copyright years.Jakub Jelinek1-1/+1
2021-01-04Update copyright years.Jakub Jelinek1-1/+1
2020-05-11libbacktrace: declare getpagesize if necessaryIan Lance Taylor1-0/+4
libbacktrace/ PR libbacktrace/95012 * configure.ac: Check for getpagesize declaration. * mmap.c: Declare getpagesize if necessary. * mmapio.c: Likewise.
2020-01-01Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r279813
2019-01-01Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r267494
2018-11-27[libbacktrace] Don't point to released memory in backtrace_vector_releaseTom de Vries1-0/+2
When backtrace_vector_release is called with vec.size == 0, it releases the memory pointed at by vec.base. Set vec.base set to NULL if vec.size == 0 to ensure we don't point to released memory. Bootstrapped and reg-tested on x86_64. 2018-11-27 Tom de Vries <tdevries@suse.de> * mmap.c (backtrace_vector_release): Same. * unittest.c (test1): Add check. From-SVN: r266505
2018-01-25re PR other/68239 (libbacktrace allocation is sometimes very slow)Ian Lance Taylor1-1/+23
PR other/68239 * mmap.c (backtrace_free_locked): Don't put more than 16 entries on the free list. From-SVN: r257039
2018-01-03Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r256169
2017-01-01Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r243994
2016-09-11* all: Remove meaningless trailing whitespace.Carlos Liam1-3/+3
From-SVN: r240084
2016-02-06mmap.c (MAP_FAILED): Define if not defined.John David Anglin1-0/+4
* mmap.c (MAP_FAILED): Define if not defined. From-SVN: r233196
2016-01-04Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r232055
2015-09-08re PR other/67457 (segfault in libbacktrace)Ian Lance Taylor1-2/+6
PR other/67457 * backtrace.c: #include "internal.h". (struct backtrace_data): Add can_alloc field. (unwind): If can_alloc is false, don't try to get file/line information. (backtrace_full): Set can_alloc field in bdata. * alloc.c (backtrace_alloc): Don't call error_callback if it is NULL. * mmap.c (backtrace_alloc): Likewise. * internal.h: Update comments for backtrace_alloc and backtrace_free. From-SVN: r227533
2015-09-08re PR other/67457 (segfault in libbacktrace)Ian Lance Taylor1-1/+1
PR other/67457 * mmap.c (backtrace_alloc): Correct test for mmap failure. From-SVN: r227529
2015-01-05Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r219188
2014-05-09mmap.c (backtrace_free): If freeing a large aligned block of memory, call ↵Ian Lance Taylor1-2/+26
munmap rather than holding onto it. * mmap.c (backtrace_free): If freeing a large aligned block of memory, call munmap rather than holding onto it. (backtrace_vector_grow): When growing a vector, double the number of pages requested. When releasing the old version of a grown vector, pass the correct size to backtrace_free. From-SVN: r210256
2014-01-02Update copyright years in libbacktrace/Richard Sandiford1-1/+1
From-SVN: r206292
2013-12-05alloc.c (backtrace_vector_finish): Add error_callback and data parameters.Ian Lance Taylor1-3/+10
* alloc.c (backtrace_vector_finish): Add error_callback and data parameters. Call backtrace_vector_release. Return address base. * mmap.c (backtrace_vector_finish): Add error_callback and data parameters. Return address base. * dwarf.c (read_function_info): Get new address base from backtrace_vector_finish. * internal.h (backtrace_vector_finish): Update declaration. From-SVN: r205716
2013-03-25alloc.c: #include <sys/types.h>.Ian Lance Taylor1-0/+1
* alloc.c: #include <sys/types.h>. * mmap.c: Likewise. From-SVN: r197057
2013-01-14Update copyright years in libbacktrace.Richard Sandiford1-1/+1
From-SVN: r195165
2013-01-01re PR other/55536 (libbacktrace abort in backtrace_alloc at mmap.c:99 ↵Ian Lance Taylor1-4/+20
running btest) PR other/55536 * mmap.c (backtrace_alloc): Don't call sync functions if not threaded. (backtrace_free): Likewise. From-SVN: r194768
2012-10-29mmap.c (backtrace_vector_release): Correct last patch: add aligned, not size.Ian Lance Taylor1-1/+2
* mmap.c (backtrace_vector_release): Correct last patch: add aligned, not size. From-SVN: r192956
2012-10-29mmap.c (backtrace_vector_release): Make sure freed block is aligned on ↵Ian Lance Taylor1-2/+12
8-byte boundary. * mmap.c (backtrace_vector_release): Make sure freed block is aligned on 8-byte boundary. From-SVN: r192945
2012-09-18Fix libbacktrace bootstrap with gcc 4.4Rainer Orth1-0/+1
* fileline.c: Include <stdlib.h>. * mmap.c: Likewise. From-SVN: r191414
2012-09-17libbacktrace/:Ian Lance Taylor1-0/+235
* 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