+2006-08-24 Andreas Schwab <schwab@suse.de>
+
+ * symfile.c (add_symbol_file_command): Fix off-by-one when
+ extending sect_opts.
+
2006-08-24 Nick Roberts <nickrob@snap.net.nz>
* mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
to load the program. */
sect_opts[section_index].name = ".text";
sect_opts[section_index].value = arg;
- if (++section_index > num_sect_opts)
+ if (++section_index >= num_sect_opts)
{
num_sect_opts *= 2;
sect_opts = ((struct sect_opt *)
{
sect_opts[section_index].value = arg;
expecting_sec_addr = 0;
- if (++section_index > num_sect_opts)
+ if (++section_index >= num_sect_opts)
{
num_sect_opts *= 2;
sect_opts = ((struct sect_opt *)