From: Mark Kettenis Date: Wed, 22 Sep 2004 20:23:54 +0000 (+0000) Subject: * language.c (language_gdbarch_post_init): Fix off-by one error. X-Git-Tag: csl-arm-2004-q3~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1285b746d8c2acc3f544c52d7f9f5c0da60c8512;p=platform%2Fupstream%2Fbinutils.git * language.c (language_gdbarch_post_init): Fix off-by one error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 90d02c5..1229355 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2004-09-22 Mark Kettenis + + * language.c (language_gdbarch_post_init): Fix off-by one error. + 2004-09-21 Daniel Jacobowitz * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash. diff --git a/gdb/language.c b/gdb/language.c index d705062..cdf35ea 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -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)