diff options
author | Mark Kettenis <kettenis@gnu.org> | 2007-01-28 14:42:12 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2007-01-28 14:42:12 +0000 |
commit | 1c3d648d5aa1d39513618bab3e9e5528eb1a2c96 (patch) | |
tree | 77fabb39921d8c3ce0c231c50459c5a26dff6b3f /gdb | |
parent | 4590cfcbee64fa71b2334e4b20706a179db63130 (diff) | |
download | gdb-1c3d648d5aa1d39513618bab3e9e5528eb1a2c96.zip gdb-1c3d648d5aa1d39513618bab3e9e5528eb1a2c96.tar.gz gdb-1c3d648d5aa1d39513618bab3e9e5528eb1a2c96.tar.bz2 |
* dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ccf63ee..1fa6676 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-01-28 Mark Kettenis <kettenis@gnu.org> + + * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero. + 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com> * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9894bf0..3c61f9a 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -7079,7 +7079,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu) || file_index > cu->line_header->num_file_names) complaint (&symfile_complaints, _("file index out of range")); - else + else if (file_index > 0) { struct file_entry *fe; fe = &cu->line_header->file_names[file_index - 1]; |