ChangeLog 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. 2015-07-16 Release Manager
  2. * GCC 5.2.0 released.
  3. 2015-04-22 Release Manager
  4. * GCC 5.1.0 released.
  5. 2015-01-24 Matthias Klose <doko@ubuntu.com>
  6. * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
  7. * configure: Regenerate.
  8. 2015-01-05 Jakub Jelinek <jakub@redhat.com>
  9. Update copyright years.
  10. 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
  11. PR bootstrap/63784
  12. * configure: Regenerated.
  13. 2014-11-11 David Malcolm <dmalcolm@redhat.com>
  14. * ChangeLog.jit: New.
  15. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  16. PR target/63610
  17. * configure: Regenerate.
  18. 2014-10-23 Ian Lance Taylor <iant@google.com>
  19. * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
  20. Fix to return void *.
  21. 2014-05-08 Ian Lance Taylor <iant@google.com>
  22. * mmap.c (backtrace_free): If freeing a large aligned block of
  23. memory, call munmap rather than holding onto it.
  24. (backtrace_vector_grow): When growing a vector, double the number
  25. of pages requested. When releasing the old version of a grown
  26. vector, pass the correct size to backtrace_free.
  27. 2014-03-07 Ian Lance Taylor <iant@google.com>
  28. * sort.c (backtrace_qsort): Use middle element as pivot.
  29. 2014-03-06 Ian Lance Taylor <iant@google.com>
  30. * sort.c: New file.
  31. * stest.c: New file.
  32. * internal.h (backtrace_qsort): Declare.
  33. * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
  34. (read_line_info, read_function_entry): Likewise.
  35. (read_function_info, build_dwarf_data): Likewise.
  36. * elf.c (elf_initialize_syminfo): Likewise.
  37. * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
  38. (stest_SOURCES, stest_LDADD): Define.
  39. (check_PROGRAMS): Add stest.
  40. 2014-02-07 Misty De Meo <misty@brew.sh>
  41. PR target/58710
  42. * configure.ac: Use AC_LINK_IFELSE in check for
  43. _Unwind_GetIPInfo.
  44. * configure: Regenerate.
  45. 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
  46. Update copyright years
  47. 2013-12-06 Jakub Jelinek <jakub@redhat.com>
  48. * elf.c (ET_DYN): Undefine and define again.
  49. (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
  50. return early -1 without closing the descriptor.
  51. (struct phdr_data): Add exe_descriptor.
  52. (phdr_callback): If pd->exe_descriptor is not -1, for very first
  53. call if dlpi_name is NULL just call elf_add with the exe_descriptor,
  54. otherwise backtrace_close the exe_descriptor if not -1. Adjust
  55. call to elf_add.
  56. (backtrace_initialize): Adjust call to elf_add. If it returns
  57. -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
  58. 2013-12-05 Ian Lance Taylor <iant@google.com>
  59. * alloc.c (backtrace_vector_finish): Add error_callback and data
  60. parameters. Call backtrace_vector_release. Return address base.
  61. * mmap.c (backtrace_vector_finish): Add error_callback and data
  62. parameters. Return address base.
  63. * dwarf.c (read_function_info): Get new address base from
  64. backtrace_vector_finish.
  65. * internal.h (backtrace_vector_finish): Update declaration.
  66. 2013-11-27 Ian Lance Taylor <iant@google.com>
  67. * dwarf.c (find_address_ranges): New static function, broken out
  68. of build_address_map.
  69. (build_address_map): Call it.
  70. * btest.c (check): Check for missing filename or function, rather
  71. than crashing.
  72. (f3): Check that enough frames were returned.
  73. 2013-11-19 Jakub Jelinek <jakub@redhat.com>
  74. * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
  75. * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
  76. last argument.
  77. * btest.c (struct symdata): Add size field.
  78. (callback_three): Add symsize argument. Copy it to the data->size
  79. field.
  80. (f23): Set symdata.size to 0.
  81. (test5): Likewise. If sizeof (int) > 1, lookup address of
  82. ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
  83. values.
  84. * atomic.c: Include sys/types.h.
  85. 2013-11-18 Ian Lance Taylor <iant@google.com>
  86. * configure.ac: Check for support of __atomic extensions.
  87. * internal.h: Declare or #define atomic functions for use in
  88. backtrace code.
  89. * atomic.c: New file.
  90. * dwarf.c (dwarf_lookup_pc): Use atomic functions.
  91. (dwarf_fileline, backtrace_dwarf_add): Likewise.
  92. * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
  93. (backtrace_initialize): Likewise.
  94. * fileline.c (fileline_initialize): Likewise.
  95. * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
  96. * configure, config.h.in, Makefile.in: Rebuild.
  97. 2013-11-18 Jakub Jelinek <jakub@redhat.com>
  98. * elf.c (SHN_UNDEF): Define.
  99. (elf_initialize_syminfo): Add base_address argument. Ignore symbols
  100. with st_shndx == SHN_UNDEF. Add base_address to address fields.
  101. (elf_add): Adjust caller.
  102. * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
  103. 2013-11-16 Ian Lance Taylor <iant@google.com>
  104. * backtrace.h (backtrace_create_state): Correct comment about
  105. threading.
  106. 2013-11-15 Ian Lance Taylor <iant@google.com>
  107. * backtrace.h (backtrace_syminfo): Update comment and parameter
  108. name to take any address, not just a PC value.
  109. * elf.c (STT_OBJECT): Define.
  110. (elf_nosyms): Rename parameter pc to addr.
  111. (elf_symbol_search): Rename local variable pc to addr.
  112. (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
  113. (elf_syminfo): Rename parameter pc to addr.
  114. * btest.c (global): New global variable.
  115. (test5): New test.
  116. (main): Call test5.
  117. 2013-10-17 Ian Lance Taylor <iant@google.com>
  118. * elf.c (elf_add): Don't get the wrong offsets if a debug section
  119. is missing.
  120. 2013-10-15 David Malcolm <dmalcolm@redhat.com>
  121. * configure.ac: Add --enable-host-shared, setting up
  122. pre-existing PIC_FLAG variable within Makefile.am et al.
  123. * configure: Regenerate.
  124. 2013-09-20 Alan Modra <amodra@gmail.com>
  125. * configure: Regenerate.
  126. 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
  127. * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
  128. 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
  129. * elf.c (backtrace_initialize): Pass elf_fileline_fn to
  130. dl_iterate_phdr callbacks.
  131. 2013-03-25 Ian Lance Taylor <iant@google.com>
  132. * alloc.c: #include <sys/types.h>.
  133. * mmap.c: Likewise.
  134. 2013-01-31 Ian Lance Taylor <iant@google.com>
  135. * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
  136. (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
  137. 2013-01-25 Jakub Jelinek <jakub@redhat.com>
  138. PR other/56076
  139. * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
  140. attribute was not seen.
  141. 2013-01-16 Ian Lance Taylor <iant@google.com>
  142. * dwarf.c (struct unit): Add filename and abs_filename fields.
  143. (build_address_map): Set new fields when reading unit.
  144. (dwarf_lookup_pc): If we don't find an entry in the line table,
  145. just return the main file name.
  146. 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
  147. Update copyright years.
  148. 2013-01-01 Ian Lance Taylor <iant@google.com>
  149. PR bootstrap/54834
  150. * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
  151. $(MULTIBUILDTOP)/../../gcc/include.
  152. * Makefile.in: Rebuild.
  153. 2013-01-01 Ian Lance Taylor <iant@google.com>
  154. PR other/55536
  155. * mmap.c (backtrace_alloc): Don't call sync functions if not
  156. threaded.
  157. (backtrace_free): Likewise.
  158. 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  159. * mmapio.c: Define MAP_FAILED if not defined.
  160. 2012-12-11 Jakub Jelinek <jakub@redhat.com>
  161. PR bootstrap/54926
  162. * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
  163. * configure.ac: If --with-target-subdir, add -frandom-seed=$@
  164. to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
  165. accepts it.
  166. * Makefile.in: Regenerated.
  167. * configure: Regenerated.
  168. 2012-12-07 Jakub Jelinek <jakub@redhat.com>
  169. PR bootstrap/54926
  170. * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
  171. * Makefile.in: Regenerated.
  172. 2012-11-20 Ian Lance Taylor <iant@google.com>
  173. * dwarf.c (read_attribute): Always clear val.
  174. 2012-11-13 Ian Lance Taylor <iant@google.com>
  175. PR other/55312
  176. * configure.ac: Only add -Werror if building a target library.
  177. * configure: Rebuild.
  178. 2012-11-12 Ian Lance Taylor <iant@google.com>
  179. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  180. Gerald Pfeifer <gerald@pfeifer.com>
  181. * configure.ac: Check for getexecname.
  182. * fileline.c: #include <errno.h>. Define getexecname if not
  183. available.
  184. (fileline_initialize): Try to find the executable in a few
  185. different ways.
  186. * print.c (error_callback): Only print the filename if it came
  187. from the backtrace state.
  188. * configure, config.h.in: Rebuild.
  189. 2012-10-29 Ian Lance Taylor <iant@google.com>
  190. * mmap.c (backtrace_vector_release): Correct last patch: add
  191. aligned, not size.
  192. 2012-10-29 Ian Lance Taylor <iant@google.com>
  193. * mmap.c (backtrace_vector_release): Make sure freed block is
  194. aligned on 8-byte boundary.
  195. 2012-10-26 Ian Lance Taylor <iant@google.com>
  196. PR other/55087
  197. * posix.c (backtrace_open): Add does_not_exist parameter.
  198. * elf.c (phdr_callback): Do not warn if shared library could not
  199. be opened.
  200. * fileline.c (fileline_initialize): Update calls to
  201. backtrace_open.
  202. * internal.h (backtrace_open): Update declaration.
  203. 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
  204. PR target/55061
  205. * configure.ac: Check for _Unwind_GetIPInfo function declaration.
  206. * configure: Regenerate.
  207. 2012-10-24 Ian Lance Taylor <iant@google.com>
  208. PR target/55061
  209. * configure.ac: Check whether -funwind-tables option works.
  210. * configure: Rebuild.
  211. 2012-10-11 Ian Lance Taylor <iant@google.com>
  212. * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
  213. * configure: Rebuild.
  214. 2012-10-10 Ian Lance Taylor <iant@google.com>
  215. * elf.c: Rename all Elf typedefs to start with b_elf, and be all
  216. lower case.
  217. 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
  218. * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
  219. 2012-10-09 Ian Lance Taylor <iant@google.com>
  220. * dwarf.c (dwarf_fileline): Add cast to avoid warning.
  221. (backtrace_dwarf_add): Likewise.
  222. 2012-10-09 Ian Lance Taylor <iant@google.com>
  223. Add support for tracing through shared libraries.
  224. * configure.ac: Check for link.h and dl_iterate_phdr.
  225. * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
  226. ELF macros before #defining them.
  227. (dl_phdr_info, dl_iterate_phdr): Define if system does not have
  228. dl_iterate_phdr.
  229. (struct elf_syminfo_data): Add next field.
  230. (elf_initialize_syminfo): Initialize next field.
  231. (elf_add_syminfo_data): New static function.
  232. (elf_add): New static function, broken out of
  233. backtrace_initialize. Call backtrace_dwarf_add instead of
  234. backtrace_dwarf_initialize.
  235. (struct phdr_data): Define.
  236. (phdr_callback): New static function.
  237. (backtrace_initialize): Call elf_add.
  238. * dwarf.c (struct dwarf_data): Add next and base_address fields.
  239. (add_unit_addr): Add base_address parameter. Change all callers.
  240. (add_unit_ranges, build_address_map): Likewise.
  241. (add_line): Add ddata parameter. Change all callers.
  242. (read_line_program, add_function_range): Likewise.
  243. (dwarf_lookup_pc): New static function, broken out of
  244. dwarf_fileline.
  245. (dwarf_fileline): Call dwarf_lookup_pc.
  246. (build_dwarf_data): New static function.
  247. (backtrace_dwarf_add): New function.
  248. (backtrace_dwarf_initialize): Remove.
  249. * internal.h (backtrace_dwarf_initialize): Don't declare.
  250. (backtrace_dwarf_add): Declare.
  251. * configure, config.h.in: Rebuild.
  252. 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
  253. * btest.c (f23): Avoid uninitialized variable warning.
  254. 2012-10-04 Ian Lance Taylor <iant@google.com>
  255. * dwarf.c: If the system header files do not declare strnlen,
  256. provide our own version.
  257. 2012-10-03 Ian Lance Taylor <iant@google.com>
  258. * dwarf.c (read_uleb128): Fix overflow test.
  259. (read_sleb128): Likewise.
  260. (build_address_map): Don't change unit_buf.start.
  261. 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
  262. PR other/54761
  263. * configure.ac (EXTRA_FLAGS): New.
  264. * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
  265. * configure, Makefile.in: Regenerate.
  266. 2012-09-29 Ian Lance Taylor <iant@google.com>
  267. PR other/54749
  268. * fileline.c (fileline_initialize): Pass errnum as -1 when
  269. reporting that we could not read executable information after a
  270. previous failure.
  271. 2012-09-27 Ian Lance Taylor <iant@google.com>
  272. PR bootstrap/54732
  273. * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
  274. * Makefile.am: Add dependencies for all objects.
  275. * configure, aclocal.m4, Makefile.in: Rebuild.
  276. 2012-09-27 Ian Lance Taylor <iant@google.com>
  277. PR other/54726
  278. * elf.c (backtrace_initialize): Set *fileln_fn, not
  279. state->fileln_fn.
  280. 2012-09-19 Ian Lance Taylor <iant@google.com>
  281. * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
  282. as a target library.
  283. * configure: Rebuild.
  284. 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  285. Ian Lance Taylor <iant@google.com>
  286. * configure.ac (GCC_HEADER_STDINT): Invoke.
  287. * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
  288. * btest.c: Don't include <stdint.h>.
  289. * dwarf.c: Likewise.
  290. * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
  291. 2012-09-18 Ian Lance Taylor <iant@google.com>
  292. PR bootstrap/54623
  293. * Makefile.am (AM_CPPFLAGS): Define.
  294. (AM_CFLAGS): Remove -I options.
  295. * Makefile.in: Rebuild.
  296. 2012-09-18 Ian Lance Taylor <iant@google.com>
  297. * posix.c (O_BINARY): Define if not defined.
  298. (backtrace_open): Pass O_BINARY to open. Only call fcntl if
  299. HAVE_FCNTL is defined.
  300. * configure.ac: Test for the fcntl function.
  301. * configure, config.h.in: Rebuild.
  302. 2012-09-18 Ian Lance Taylor <iant@google.com>
  303. * btest.c (test1, test2, test3, test4): Add the unused attribute.
  304. 2012-09-18 Ian Lance Taylor <iant@google.com>
  305. * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
  306. 2012-09-18 Ian Lance Taylor <iant@google.com>
  307. * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
  308. * mmapio.c: Don't define _GNU_SOURCE.
  309. * configure, config.h.in: Rebuild.
  310. 2012-09-18 Ian Lance Taylor <iant@google.com>
  311. * configure.ac: Check whether strnlen is declared.
  312. * dwarf.c: Declare strnlen if not declared.
  313. * configure, config.h.in: Rebuild.
  314. 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  315. * fileline.c: Include <stdlib.h>.
  316. * mmap.c: Likewise.
  317. 2012-09-17 Ian Lance Taylor <iant@google.com>
  318. PR bootstrap/54611
  319. * nounwind.c (backtrace_full): Rename from backtrace. Add state
  320. parameter.
  321. 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
  322. PR bootstrap/54611
  323. * nounwind.c (backtrace_simple): Add state parameter.
  324. 2012-09-17 Ian Lance Taylor <iant@google.com>
  325. PR bootstrap/54609
  326. * unknown.c (unknown_fileline): Add state parameter, remove
  327. fileline_data parameter, name error_callback parameter.
  328. (backtrace_initialize): Add state parameter.
  329. 2012-09-17 Ian Lance Taylor <iant@google.com>
  330. * Initial implementation.