Re: bitpos expansion patches summary

Siddhesh Poyarekar
2012-08-10T07:58:21Z

On Fri, 10 Aug 2012 09:50:56 +0200, Jan wrote:
> if (accumulate_size < 0)
> error (_("Total size of arguments too large for host GDB
> memory."));
>
> It also should print the sizes, in some cases GDB would print the
> first error above, in other cases the second error, I do not think
> there is a difference.

Ack.

> We discussed before that the larger size of unsigned types vs. signed
> types is not useful. GDB will never successfully allocate more than
> 2GB on 32-bit host (size_t max larger than ssize_t). And it does not
> make sense to consider anyhow sizes above 9 quintillion (ULONGEST max
> larger than LONGEST on any host or size_t larger than ssize_t on
> 64-bit hosts)

OK, I'll limit it to SIZE_MAX / 8 (i.e. SSIZE_MAX / 4).

I'll send an updated patch in this case since the size_t patch is not
that large.

Regards,
Siddhesh