* language.c (language_gdbarch_post_init): Fix off-by one error.

This commit is contained in:
Mark Kettenis 2004-09-22 20:23:54 +00:00
parent cbaa0dc574
commit 1285b746d8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-09-22 Mark Kettenis <kettenis@gnu.org>
* language.c (language_gdbarch_post_init): Fix off-by one error.
2004-09-21 Daniel Jacobowitz <dan@debian.org>
* dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.

View file

@ -1286,7 +1286,7 @@ language_gdbarch_post_init (struct gdbarch *gdbarch)
int i;
l = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct language_gdbarch);
for (i = 0; i <= languages_size; i++)
for (i = 0; i < languages_size; i++)
{
if (languages[i] != NULL
&& languages[i]->la_language_arch_info != NULL)