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]

Re: [patch/rfc] Eliminate char buf[MAX_REGISTER_RAW_SIZE]


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]