summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-09-22 20:23:54 +0000
committerMark Kettenis <kettenis@gnu.org>2004-09-22 20:23:54 +0000
commitd2abe6b006c52cec64872c15cc64120a6c9a7d5d (patch)
tree5c604e96c70ec21814dfe2bcc799a4111598161f /gdb
parentd2caf9ebedbceda6f053b9d854a2d1f872bd5703 (diff)
downloadgdb-d2abe6b006c52cec64872c15cc64120a6c9a7d5d.tar.gz
* language.c (language_gdbarch_post_init): Fix off-by one error.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/language.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 90d02c55799..1229355ec8b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/language.c b/gdb/language.c
index d7050622a3a..cdf35ea6bb6 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)