This is the mail archive of the gdb-patches@sources.redhat.com 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] |
Is GDB trying to move away from alloca? The internals manual says:
GDB can use the non-portable function `alloca' for the allocation of small temporary values (such as strings).
So I use it to avoid cleanups. OTOH, it occurs to me that rs->remote_packet_size is a bit large; OTOOH, remote.c uses this idiom all over the place already.
I've used xmalloc instead, since the buf is used for getpkt and thus must be remote_packet_size large.
Here's what I am about to check in.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |