* dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use.

This commit is contained in:
Alan Modra 2006-02-28 00:38:19 +00:00
parent 1ae97d1e61
commit 10cd14b412
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-02-28 Mat <mat@csail.mit.edu>
* dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use.
2006-02-27 Jakub Jelinek <jakub@redhat.com> 2006-02-27 Jakub Jelinek <jakub@redhat.com>
* dw2gencfi.c (struct fde_entry, struct cie_entry): Add signal_frame * dw2gencfi.c (struct fde_entry, struct cie_entry): Add signal_frame

View File

@ -1,5 +1,5 @@
/* dwarf2dbg.c - DWARF2 debug support /* dwarf2dbg.c - DWARF2 debug support
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
@ -484,6 +484,7 @@ get_filenum (const char *filename, unsigned int num)
files[i].filename = num ? file : xstrdup (file); files[i].filename = num ? file : xstrdup (file);
files[i].dir = dir; files[i].dir = dir;
if (files_in_use < i + 1)
files_in_use = i + 1; files_in_use = i + 1;
last_used = i; last_used = i;
last_used_dir_len = dir_len; last_used_dir_len = dir_len;