[RFA] Change malloc to xmalloc

Andrew Cagney ac131313@cygnus.com
Wed Jan 24 00:00:00 GMT 2001


Kevin Buettner wrote:

> Also, when you change something with PTR in it, just change the ``PTR''
> to ``void *''.

It depends.  There are a uses of PTR lurking in GDB where the function
being declared/defined needs to match something in an external header. 
Something todo with mmalloc() from memory.

> [...]
> > Index: stuff.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/stuff.c,v
> > retrieving revision 1.2
> 
> I think you should leave stuff.c alone.  It's a stand-alone program
> that doesn't link in utils.c.  (Actually, I think stuff.c ought
> to be marked obsolete and eventually deleted.)

Hmm, yes, that has been proposed before (by someone called KevinB? :-). 
This should be added to the 5.1 TODO list so that it does actually
happen :-)

	enjoy,
		Andrew


More information about the Gdb-patches mailing list