This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: fix latent bug in syms_from_objfile_1


On Thu, 21 Mar 2013 16:30:48 +0100, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> Jan> I always thought such sizeof calculation works even with # of
> Jan> elements == 0.  Why not?
> 
> It seemed weird to me since it would allocate an object smaller than a
> struct section_addr_info.
> 
> I don't mind dropping that line though.

I find it allocates excessive element otherwise.

There should be "struct other_sections other[0];", that [1] is there only as
a workaround for non-GCC compilers.

Anyway not worth of more talk.


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]