Avoid segfault on missing directory table.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 8 May 2015 19:43:39 +0000 (12:43 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 8 May 2015 19:43:39 +0000 (12:43 -0700)
commitafa6c9abf2c12c8e6155d088ea45e5091ca79c57
treebbdafc9070faac9f0bfdb2833a1811f864eb6123
parent35d54293c3a0fb5e8cd3a82a1e2a6e0481b615af
Avoid segfault on missing directory table.

2015-05-08  Yao Qi  <yao@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gdb/
* dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
to 'lh->include_dirs' before accessing to it.
(psymtab_include_file_name): Likewise.
(dwarf_decode_lines_1): Likewise.
(dwarf_decode_lines): Likewise.
(file_file_name): Likewise.
gdb/ChangeLog
gdb/dwarf2read.c