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: [commit/Tru64] bring back the Tru64 port to life...


On Friday 06 March 2009 00:57:53, Joel Brobecker wrote:
> In both cases, if nsecs is zero, we end up allocating less memory
> than sizeof (struct lm_info). Intuitively, it seems OK, since we
> shouldn't really access the secs array if nsecs is null.

Ah, you're right.

> 
> One easy way out is to change the allocation to allocate one extra
> entry in the secs array. It's slightly wasteful, but it's just a
> few bytes times the number of shared libraries.
> 
> What do you think?
> 

Nah, it's fine as is.  Sorry about the noise.  :-)

-- 
Pedro Alves


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