[patch/rfc] Eliminate char buf[MAX_REGISTER_RAW_SIZE]

Andrew Cagney ac131313@redhat.com
Sat Feb 1 06:17:00 GMT 2003


> 
> I'm not sure, but I think you need to go even further:
> 
> 	char *buf;
> 	buf = alloca (...);
> 
> Some compilers will not allow a function call in an auto initializer.

That isn't a problem.  GDB's been using alloca() in auto declarations 
for ages.

Andrew




More information about the Gdb-patches mailing list