Re: [patch] realloc bug in add_symbol_file_command

Jean-Marc Saffroy
2006-10-06T21:59:37Z

On Fri, 6 Oct 2006, Michael Snyder wrote:

> On Fri, 2006-10-06 at 16:16 +0200, Jean-Marc Saffroy wrote:
>> Hello,
>>
>> In gdb 6.5 I had systematic crashes with add-symbol-file: my kernel
>> modules have many sections... :) The patch below lets me load many modules
>> now.
>
> Just to be safe, might you want to use >=?

Do you fear the processor would skip a number when incrementing the
variable indexing the section array? ;-)

Given the current code, it should not be necessary in any way, but feel
free to change the patch as you please.

Cheers,

--
saffroy@gmail.com