2002-01-07 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 8 Jan 2002 02:04:12 +0000 (02:04 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 8 Jan 2002 02:04:12 +0000 (02:04 +0000)
commitd33fc4e447bc1a277ab1e49b7a7d39e07f01f33e
tree881d947f95d35a05a42ddc95d3d4dac9271bdae1
parent21c1c9207f4f68fd7a2a2b3e29595af7be75c64a
2002-01-07  Michael Snyder  <msnyder@redhat.com>

* infptrace.c (GDB_MAX_ALLOCA): New define.
(child_xfer_memory): Use xmalloc/xfree instead of alloca if the
size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
can be overridden with whatever value is appropriate to the host).
* infttrace.c (child_xfer_memory): Add FIXME warning about use of
alloca to allocate potentially large buffer.
* rs6000-nat.c (child_xfer_memory): Ditto.
* symm-nat.c (child_xfer_memory): Ditto.
* x86-64-linux-nat.c (child_xfer_memory): Ditto.
gdb/rs6000-nat.c