From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH RFA] mi/mi-main.c: Don't use variable-length array extension Date: Mon, 09 Jul 2001 09:56:00 -0000 Message-id: <1010709165551.ZM11042@ocotillo.lan> References: <1010709062833.ZM9934@ocotillo.lan> <3B49BDD5.90803@cygnus.com> X-SW-Source: 2001-07/msg00203.html On Jul 9, 10:21am, Andrew Cagney wrote: > > These are probably obvious fixes, but I used alloca() which is > > sometimes considered objectionable, so I decided to ask for approval. > > I'm willing to rework the patch to use xmalloc(), make_cleanup(), etc, > > but it will be messier. > > > > * mi-main.c (register_changed_p, get_register): Use alloca() > > to allocate space previously allocated via gcc's > > variable-length array extension. > > > This is one of the uses of alloca that everyone has grown accustomed to. I'll take that as approval then... Committed. Kevin