Skip to content

Commit c5251d9

Browse files
committed
Update libbacktrace
1 parent 3d4d3d1 commit c5251d9

35 files changed

+938
-270
lines changed

backtrace-sys/src/libbacktrace/ChangeLog

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,114 @@
1+
2016-11-15 Matthias Klose <[email protected]>
2+
3+
* configure: Regenerate.
4+
5+
2016-09-11 Carlos Liam <[email protected]>
6+
7+
* all: Remove meaningless trailing whitespace.
8+
9+
2016-05-18 Uros Bizjak <[email protected]>
10+
11+
PR target/71161
12+
* elf.c (phdr_callback) [__i386__]: Add
13+
__attribute__((__force_align_arg_pointer__)).
14+
15+
2016-03-02 Maxim Ostapenko <[email protected]>
16+
17+
* elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
18+
avoid possible crash.
19+
(elf_add): Don't set *fileline_fn to elf_nodebug value in case of
20+
missing debug info anymore.
21+
22+
2016-02-06 John David Anglin <[email protected]>
23+
24+
* mmap.c (MAP_FAILED): Define if not defined.
25+
26+
2016-01-04 Jakub Jelinek <[email protected]>
27+
28+
Update copyright years.
29+
30+
2015-12-18 Andris Pavenis <[email protected]>
31+
32+
* configure.ac: Specify that DJGPP do not have mmap
33+
even when sys/mman.h exists.
34+
* configure: Regenerate
35+
36+
2015-12-09 John David Anglin <[email protected]>
37+
38+
PR libgfortran/68115
39+
* configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
40+
* configure: Regenerate.
41+
* elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
42+
to void.
43+
44+
2015-09-17 Ian Lance Taylor <[email protected]>
45+
46+
* posix.c (backtrace_open): Cast second argument of open() to int.
47+
48+
2015-09-11 Ian Lance Taylor <[email protected]>
49+
50+
* Makefile.am (backtrace.lo): Depend on internal.h.
51+
(sort.lo, stest.lo): Add explicit dependencies.
52+
* Makefile.in: Rebuild.
53+
54+
2015-09-09 Hans-Peter Nilsson <[email protected]>
55+
56+
* backtrace.c: #include <sys/types.h>.
57+
58+
2015-09-08 Ian Lance Taylor <[email protected]>
59+
60+
PR other/67457
61+
* backtrace.c: #include "internal.h".
62+
(struct backtrace_data): Add can_alloc field.
63+
(unwind): If can_alloc is false, don't try to get file/line
64+
information.
65+
(backtrace_full): Set can_alloc field in bdata.
66+
* alloc.c (backtrace_alloc): Don't call error_callback if it is
67+
NULL.
68+
* mmap.c (backtrace_alloc): Likewise.
69+
* internal.h: Update comments for backtrace_alloc and
70+
backtrace_free.
71+
72+
2015-09-08 Ian Lance Taylor <[email protected]>
73+
74+
PR other/67457
75+
* mmap.c (backtrace_alloc): Correct test for mmap failure.
76+
77+
2015-08-31 Ulrich Weigand <[email protected]>
78+
79+
* configure.ac: For spu-*-* targets, set have_fcntl to no.
80+
* configure: Regenerate.
81+
82+
2015-08-27 Ulrich Weigand <[email protected]>
83+
84+
* configure.ac: Remove [disable-shared] argument to LT_INIT.
85+
Remove setting PIC_FLAG when building as target library.
86+
* configure: Regenerate.
87+
88+
2015-08-26 Hans-Peter Nilsson <[email protected]>
89+
90+
* configure.ac: Only compile with -fPIC if the target
91+
supports it.
92+
* configure: Regenerate.
93+
94+
2015-08-24 Ulrich Weigand <[email protected]>
95+
96+
* configure.ac: Set have_mmap to no on spu-*-* targets.
97+
* configure: Regenerate.
98+
99+
2015-08-13 Ian Lance Taylor <[email protected]>
100+
101+
* dwarf.c (read_function_entry): Add vec_inlined parameter.
102+
Change all callers.
103+
104+
2015-06-11 Martin Sebor <[email protected]>
105+
106+
PR sanitizer/65479
107+
* dwarf.c (struct line): Add new field idx.
108+
(line_compare): Use it.
109+
(add_line): Set it.
110+
(read_line_info): Reset it.
111+
1112
2015-05-29 Tristan Gingold <[email protected]>
2113

3114
* pecoff.c: New file.
@@ -479,3 +590,9 @@
479590
2012-09-17 Ian Lance Taylor <[email protected]>
480591

481592
* Initial implementation.
593+
594+
Copyright (C) 2012-2016 Free Software Foundation, Inc.
595+
596+
Copying and distribution of this file, with or without modification,
597+
are permitted in any medium without royalty provided the copyright
598+
notice and this notice are preserved.

backtrace-sys/src/libbacktrace/Makefile.am

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Makefile.am -- Backtrace Makefile.
2-
# Copyright (C) 2012-2015 Free Software Foundation, Inc.
2+
# Copyright (C) 2012-2016 Free Software Foundation, Inc.
33

44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions are
66
# met:
77

88
# (1) Redistributions of source code must retain the above copyright
9-
# notice, this list of conditions and the following disclaimer.
9+
# notice, this list of conditions and the following disclaimer.
1010

1111
# (2) Redistributions in binary form must reproduce the above copyright
1212
# notice, this list of conditions and the following disclaimer in
1313
# the documentation and/or other materials provided with the
14-
# distribution.
14+
# distribution.
1515

1616
# (3) The name of the author may not be used to
1717
# endorse or promote products derived from this software without
@@ -116,7 +116,7 @@ endif NATIVE
116116

117117
INCDIR = $(top_srcdir)/../include
118118
alloc.lo: config.h backtrace.h internal.h
119-
backtrace.lo: config.h backtrace.h
119+
backtrace.lo: config.h backtrace.h internal.h
120120
btest.lo: (INCDIR)/filenames.h backtrace.h backtrace-supported.h
121121
dwarf.lo: config.h $(INCDIR)/dwarf2.h $(INCDIR)/dwarf2.def \
122122
$(INCDIR)/filenames.h backtrace.h internal.h
@@ -130,5 +130,7 @@ posix.lo: config.h backtrace.h internal.h
130130
print.lo: config.h backtrace.h internal.h
131131
read.lo: config.h backtrace.h internal.h
132132
simple.lo: config.h backtrace.h internal.h
133+
sort.lo: config.h backtrace.h internal.h
134+
stest.lo: config.h backtrace.h internal.h
133135
state.lo: config.h backtrace.h backtrace-supported.h internal.h
134136
unknown.lo: config.h backtrace.h internal.h

backtrace-sys/src/libbacktrace/Makefile.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
@SET_MAKE@
1717

1818
# Makefile.am -- Backtrace Makefile.
19-
# Copyright (C) 2012-2015 Free Software Foundation, Inc.
19+
# Copyright (C) 2012-2016 Free Software Foundation, Inc.
2020

2121
# Redistribution and use in source and binary forms, with or without
2222
# modification, are permitted provided that the following conditions are
2323
# met:
2424

2525
# (1) Redistributions of source code must retain the above copyright
26-
# notice, this list of conditions and the following disclaimer.
26+
# notice, this list of conditions and the following disclaimer.
2727

2828
# (2) Redistributions in binary form must reproduce the above copyright
2929
# notice, this list of conditions and the following disclaimer in
3030
# the documentation and/or other materials provided with the
31-
# distribution.
31+
# distribution.
3232

3333
# (3) The name of the author may not be used to
3434
# endorse or promote products derived from this software without
@@ -162,6 +162,7 @@ AUTOMAKE = @AUTOMAKE@
162162
AWK = @AWK@
163163
BACKTRACE_FILE = @BACKTRACE_FILE@
164164
BACKTRACE_SUPPORTED = @BACKTRACE_SUPPORTED@
165+
BACKTRACE_SUPPORTS_DATA = @BACKTRACE_SUPPORTS_DATA@
165166
BACKTRACE_SUPPORTS_THREADS = @BACKTRACE_SUPPORTS_THREADS@
166167
BACKTRACE_USES_MALLOC = @BACKTRACE_USES_MALLOC@
167168
CC = @CC@
@@ -745,7 +746,7 @@ uninstall-am:
745746
uninstall-am
746747

747748
alloc.lo: config.h backtrace.h internal.h
748-
backtrace.lo: config.h backtrace.h
749+
backtrace.lo: config.h backtrace.h internal.h
749750
btest.lo: (INCDIR)/filenames.h backtrace.h backtrace-supported.h
750751
dwarf.lo: config.h $(INCDIR)/dwarf2.h $(INCDIR)/dwarf2.def \
751752
$(INCDIR)/filenames.h backtrace.h internal.h
@@ -759,6 +760,8 @@ posix.lo: config.h backtrace.h internal.h
759760
print.lo: config.h backtrace.h internal.h
760761
read.lo: config.h backtrace.h internal.h
761762
simple.lo: config.h backtrace.h internal.h
763+
sort.lo: config.h backtrace.h internal.h
764+
stest.lo: config.h backtrace.h internal.h
762765
state.lo: config.h backtrace.h backtrace-supported.h internal.h
763766
unknown.lo: config.h backtrace.h internal.h
764767

backtrace-sys/src/libbacktrace/alloc.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/* alloc.c -- Memory allocation without mmap.
2-
Copyright (C) 2012-2015 Free Software Foundation, Inc.
2+
Copyright (C) 2012-2016 Free Software Foundation, Inc.
33
Written by Ian Lance Taylor, Google.
44
55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are
77
met:
88
99
(1) Redistributions of source code must retain the above copyright
10-
notice, this list of conditions and the following disclaimer.
10+
notice, this list of conditions and the following disclaimer.
1111
1212
(2) Redistributions in binary form must reproduce the above copyright
1313
notice, this list of conditions and the following disclaimer in
1414
the documentation and/or other materials provided with the
15-
distribution.
16-
15+
distribution.
16+
1717
(3) The name of the author may not be used to
1818
endorse or promote products derived from this software without
1919
specific prior written permission.
@@ -44,7 +44,8 @@ POSSIBILITY OF SUCH DAMAGE. */
4444
backtrace functions may not be safely invoked from a signal
4545
handler. */
4646

47-
/* Allocate memory like malloc. */
47+
/* Allocate memory like malloc. If ERROR_CALLBACK is NULL, don't
48+
report an error. */
4849

4950
void *
5051
backtrace_alloc (struct backtrace_state *state ATTRIBUTE_UNUSED,
@@ -55,7 +56,10 @@ backtrace_alloc (struct backtrace_state *state ATTRIBUTE_UNUSED,
5556

5657
ret = malloc (size);
5758
if (ret == NULL)
58-
error_callback (data, "malloc", errno);
59+
{
60+
if (error_callback)
61+
error_callback (data, "malloc", errno);
62+
}
5963
return ret;
6064
}
6165

backtrace-sys/src/libbacktrace/ansidecl.h

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* ANSI and traditional C compatability macros
2-
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
3-
2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2013
4-
Free Software Foundation, Inc.
2+
Copyright (C) 1991-2015 Free Software Foundation, Inc.
53
This file is part of the GNU C Library.
64
75
This program is free software; you can redistribute it and/or modify
@@ -315,6 +313,41 @@ So instead we use the macro below and test it against specific values. */
315313
#define ENUM_BITFIELD(TYPE) unsigned int
316314
#endif
317315

316+
/* C++11 adds the ability to add "override" after an implementation of a
317+
virtual function in a subclass, to:
318+
(A) document that this is an override of a virtual function
319+
(B) allow the compiler to issue a warning if it isn't (e.g. a mismatch
320+
of the type signature).
321+
322+
Similarly, it allows us to add a "final" to indicate that no subclass
323+
may subsequently override the vfunc.
324+
325+
Provide OVERRIDE and FINAL as macros, allowing us to get these benefits
326+
when compiling with C++11 support, but without requiring C++11.
327+
328+
For gcc, use "-std=c++11" to enable C++11 support; gcc 6 onwards enables
329+
this by default (actually GNU++14). */
330+
331+
#if __cplusplus >= 201103
332+
/* C++11 claims to be available: use it. final/override were only
333+
implemented in 4.7, though. */
334+
# if GCC_VERSION < 4007
335+
# define OVERRIDE
336+
# define FINAL
337+
# else
338+
# define OVERRIDE override
339+
# define FINAL final
340+
# endif
341+
#elif GCC_VERSION >= 4007
342+
/* G++ 4.7 supports __final in C++98. */
343+
# define OVERRIDE
344+
# define FINAL __final
345+
#else
346+
/* No C++11 support; leave the macros empty: */
347+
# define OVERRIDE
348+
# define FINAL
349+
#endif
350+
318351
#ifdef __cplusplus
319352
}
320353
#endif

backtrace-sys/src/libbacktrace/atomic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/* atomic.c -- Support for atomic functions if not present.
2-
Copyright (C) 2013-2015 Free Software Foundation, Inc.
2+
Copyright (C) 2013-2016 Free Software Foundation, Inc.
33
Written by Ian Lance Taylor, Google.
44
55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are
77
met:
88
99
(1) Redistributions of source code must retain the above copyright
10-
notice, this list of conditions and the following disclaimer.
10+
notice, this list of conditions and the following disclaimer.
1111
1212
(2) Redistributions in binary form must reproduce the above copyright
1313
notice, this list of conditions and the following disclaimer in
1414
the documentation and/or other materials provided with the
15-
distribution.
16-
15+
distribution.
16+
1717
(3) The name of the author may not be used to
1818
endorse or promote products derived from this software without
1919
specific prior written permission.

backtrace-sys/src/libbacktrace/backtrace-supported.h.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/* backtrace-supported.h.in -- Whether stack backtrace is supported.
2-
Copyright (C) 2012-2015 Free Software Foundation, Inc.
2+
Copyright (C) 2012-2016 Free Software Foundation, Inc.
33
Written by Ian Lance Taylor, Google.
44
55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are
77
met:
88
99
(1) Redistributions of source code must retain the above copyright
10-
notice, this list of conditions and the following disclaimer.
10+
notice, this list of conditions and the following disclaimer.
1111
1212
(2) Redistributions in binary form must reproduce the above copyright
1313
notice, this list of conditions and the following disclaimer in
1414
the documentation and/or other materials provided with the
15-
distribution.
16-
15+
distribution.
16+
1717
(3) The name of the author may not be used to
1818
endorse or promote products derived from this software without
1919
specific prior written permission.

0 commit comments

Comments
 (0)