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: allocate namecopy on heap, not stack


On Fri, Apr 29, 2005 at 04:35:35PM -0500, Jim Blandy wrote:
> 
> Committed as obvious.
> 
> 2005-04-28  Jim Blandy  <jimb@redhat.com>
> 
> 	* parse.c (namecopy): Change allocation conventions.
> 	(namecopy_size): New variable.
> 	(copy_name): Allocate namecopy using xrealloc, instead of assuming
> 	it has adequate space allocated to it.
> 	(parse_exp_1): Don't try to allocate space for namecopy here.

What prompted ths change?  Even "obvious" patches deserve an
explanation.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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