dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
authorThan McIntosh <thanm@google.com>
Fri, 19 May 2017 16:07:24 +0000 (16:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 19 May 2017 16:07:24 +0000 (16:07 +0000)
commit281161d16bb6c0a3759c86270c885c98c9eb49eb
tree2077ab38904da7c5abb663193b3992c093264c51
parent51cd6b78eedaefec65059f7a8cbca1f2b9bf4878
dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.

* dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
(read_line_header): Don't allocate dirs if dirs_count == 0.
* edtest.c: New file.
* edtest2.c: New file.
* Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
(check_PROGRAMS): Add edtest.
(edtest2_build.c, gen_edtest2_build): New targets.
* Makefile.in: Rebuild.

From-SVN: r248295
libbacktrace/ChangeLog
libbacktrace/Makefile.am
libbacktrace/Makefile.in
libbacktrace/dwarf.c
libbacktrace/edtest.c [new file with mode: 0644]
libbacktrace/edtest2.c [new file with mode: 0644]